Skip to content

Installer GUI/Python 3: check if install comparison method returns None or not - #9924

Merged
feerrenrut merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:i9923installComparisonType
Jul 15, 2019
Merged

Installer GUI/Python 3: check if install comparison method returns None or not#9924
feerrenrut merged 1 commit into
nvaccess:threshold_py3_stagingfrom
josephsl:i9923installComparisonType

Conversation

@josephsl

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #9923

Summary of the issue:

Installer GUI does not catch type error when attempting to install NVDA from scratch.

Description of how this pull request fixes the issue:

Make sure installer's install comparison function's return value is not None before checking if an upgrade or a warning dialog is shown when trying to update or install NVDA from scratch.

Testing performed:

Tested inside Windows 10 Version 1903 sandbox.

Known issues with pull request:

None

Change log entry:

None

…s not None. Re nvaccess#9923.

Comparison function found in installer can return an integer (-1, 0, 1) or None. Because of this, when comparing the return value from installer GUI, it assumed None was an integer when in fact in Python 3, it is a different type.
@josephsl
josephsl requested a review from feerrenrut July 15, 2019 01:28

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @josephsl

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.

4 participants