Skip to content

Fix ValueError on update#9027

Merged
michaelDCurran merged 2 commits into
nvaccess:masterfrom
BabbageCom:i9026
Dec 8, 2018
Merged

Fix ValueError on update#9027
michaelDCurran merged 2 commits into
nvaccess:masterfrom
BabbageCom:i9026

Conversation

@LeonarddeR

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #9026

Summary of the issue:

When updating NVDA, a ValueError was raised when NVDA was unable to create a version tuple from a snapshot build.

Description of how this pull request fixes the issue:

The version tuple is now build from the FIleVersion string embedded in the executable. It is also evaluated before the succeeded download dialog. Whenever the fileVersion attribute is missing (i.e. in older builds), NVDA falls back to the version string. If that fails, the caused traceback is properly handled as were it a failed download.

Testing performed:

From source, set versionInfo.updateVersionType and performed an update using the python colse. Also postponed that update and retriggered the pending installation message, all without errors.

Known issues with pull request:

This relies on file version information embedded in the file. It would help if the server would also fetch the file version information and embed that in the update info. That would also help in evaluating the incompatible add-ons before (not after) downloading the update.

Change log entry:

None needed.

@Brian1Gaff

Brian1Gaff commented Dec 7, 2018 via email

Copy link
Copy Markdown

@LeonarddeR

LeonarddeR commented Dec 7, 2018 via email

Copy link
Copy Markdown
Collaborator Author

@josephsl

josephsl commented Dec 7, 2018 via email

Copy link
Copy Markdown
Contributor

@michaelDCurran michaelDCurran merged commit f663c30 into nvaccess:master Dec 8, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.4 milestone Dec 8, 2018
@LeonarddeR LeonarddeR added the BabbageWork Pull requests filed on behalf of Babbage B.V. label Oct 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BabbageWork Pull requests filed on behalf of Babbage B.V.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update check/installation: value error when trying to install alpha snapshot

5 participants