-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Don't show internet conection errors on startup when trying to check for new releases #4237
PR: Don't show internet conection errors on startup when trying to check for new releases #4237
Conversation
…for new releases.
spyder/workers/updates.py
Outdated
self.error = error_msg | ||
self.sig_ready.emit() | ||
# Don't show dialog when starting up spyder and an error occur | ||
if not self.startup or error_msg is None: |
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.
Shouldn't this be ... or error_msg is not None
?
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.
Hmm no, the idea is not to show the dialog when there is an error:
Maybe it will be easy to understand:
if not (self.startup and error_message is not None):
Or
if self.startup and error_message is not None: return
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.
Hmm no, the idea is not to show the dialog when there is an error
I don't agree. The idea (for me) is to not show the dialog if there are errors but only at startup (because it's very annoying). However, if you want to manually check for updates, Spyder should an error message in case it can't do it.
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.
Yes, that's the idea, the expression will evaluate True
when startup is False
(regardless if error_message
is None
or not)
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.
Ok, but if error_msg
is different from None
, we also want to show the dialog. And that's not the case here because we enter this block if error_msg
is None
(which is a contradiction for me and what motivated me to write my first comment).
spyder/workers/updates.py
Outdated
self.error = error_msg | ||
self.sig_ready.emit() | ||
# Don't show dialog when starting up spyder and an error occur | ||
if not (self.startup and error_message is not None): |
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.
error_message
-> error_msg
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.
Fixed 😄
8b6e2ca
to
eec7503
Compare
Fixes #4217