-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
fix #17800 recression of #17310 #17804
base: master
Are you sure you want to change the base?
Conversation
See test results for failed build of commit 37c53ddade |
@christopherpross I'm afraid you commited something wrong here. There's only a versionInfo.py change that adds a random alpha version. Please double check whether this is correct. |
f542fa1
to
c89f9a5
Compare
@LeonarddeR sorry, something is wrong with my git tool here. I commit now the right file. |
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.
Thanks!
try: | ||
# if data is empty, we return None, because the server returns an empty response if there is no update. | ||
if not data: | ||
return 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.
I think you can safely leave this out of the try block, like this.
try: | |
# if data is empty, we return None, because the server returns an empty response if there is no update. | |
if not data: | |
return None | |
# if data is empty, we return None, because the server returns an empty response if there is no update. | |
if not data: | |
return None | |
try: |
Link to issue number:
#17800
Summary of the issue:
The changes introduced in PR #17310 had a bug. If the version being checked for an update is the latest for the given versionType, the server returns an empty response. This caused an error because the required keys for a valid update response were missing.
Description of user facing changes
With the update mirror validation in place, checking for updates while running the latest version will now correctly result in the standard message indicating that no update is available.
Description of development approach
Testing strategy:
Known issues with pull request:
Code Review Checklist:
@coderabbitai summary