-
Notifications
You must be signed in to change notification settings - Fork 0
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
handle other exceptions in the popup window #11
base: next
Are you sure you want to change the base?
Conversation
…llib3.exceptions.NameResolutionError when there is no internet connection
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #11 +/- ##
==========================================
+ Coverage 95.07% 95.20% +0.13%
==========================================
Files 3 3
Lines 142 146 +4
==========================================
+ Hits 135 139 +4
Misses 7 7 ☔ View full report in Codecov by Sentry. |
tests/test_login_dialog.py
Outdated
# This is the error message that crashed Shiver when there is no internet connection | ||
dialog.show_message.assert_called_once_with( | ||
"The following exception occured: NameResolutionError.__init__() missing 3 \ | ||
required positional arguments: 'host', 'conn', and 'reason'" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too many spaces. It fails the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new push fixed this.
Shiver crashes user tries to login without internet connection. This exception was raised "llib3.exceptions.NameResolutionError" which is not handled. This pr adds a blanket exception handling to display the exception in the pop up window.

EWM 9859
Fixed unit tests to correctly test difference use cases
Short description of the changes:
Long description of the changes:
Check list for the pull request
Check list for the reviewer
Manual test for the reviewer
References