Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qvm-prefs: Don't falsely report 'no such property' #268

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

HW42
Copy link
Contributor

@HW42 HW42 commented Dec 11, 2023

Previously we printed a 'no such property' error for all exceptions that are an instance of AttributeError which includes
QubesPropertyAccessError and therefore generated confusing error messages. Print them only in case of QubesNoSuchPropertyError.

Fixes QubesOS/qubes-issues#8666
Related to QubesOS/qubes-issues#5005

Previously we printed a 'no such property' error for all exceptions that
are an instance of AttributeError which includes
QubesPropertyAccessError and therefore generated confusing error
messages. Print them only in case of QubesNoSuchPropertyError.

Fixes QubesOS/qubes-issues#8666
Related to QubesOS/qubes-issues#5005
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e789256) 75.07% compared to head (25c3254) 75.03%.

Files Patch % Lines
qubesadmin/tools/qvm_prefs.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #268      +/-   ##
==========================================
- Coverage   75.07%   75.03%   -0.04%     
==========================================
  Files          51       51              
  Lines        7815     7815              
==========================================
- Hits         5867     5864       -3     
- Misses       1948     1951       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marmarek marmarek merged commit 80695d1 into QubesOS:main Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qvm-prefs claims property doesn't exist when trying to set it to an invalid value
2 participants