Skip to content

Catch KeyError when creating a deep copy dictionary from an aggregated config section#8780

Merged
michaelDCurran merged 1 commit into
nvaccess:masterfrom
BabbageCom:configProfileFix
Sep 25, 2018
Merged

Catch KeyError when creating a deep copy dictionary from an aggregated config section#8780
michaelDCurran merged 1 commit into
nvaccess:masterfrom
BabbageCom:configProfileFix

Conversation

@LeonarddeR

@LeonarddeR LeonarddeR commented Sep 25, 2018

Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #8778

Summary of the issue:

Switching config profiles didn't work in many cases. This was because the new dict method on aggregated config sections didn't catch a KeyError.

Description of how this pull request fixes the issue:

The dict method is now based on iteritems, similar to copy. iteritems properly catches this error.

Testing performed:

There is a try build being created to be tested by people who suffer from this.

Known issues with pull request:

None

Change log entry:

None needed

@LeonarddeR

Copy link
Copy Markdown
Collaborator Author

The original reporter of this issue on NVDA devel reported that the issue has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config profile triggers: a nonexistent key causes key error traceback when attempting to switch between profiles

3 participants