nvda
bc128158 - Delayed detection of spelling errors: when fetcing formatting, catch any exception not just RuntimeError as a lot of complex things could go wrong if the underlying object disappears for instance. (#12931)

Commit
4 years ago
Delayed detection of spelling errors: when fetcing formatting, catch any exception not just RuntimeError as a lot of complex things could go wrong if the underlying object disappears for instance. (#12931) Fixes #12930 Fixup of #12925 Summary of the issue: When fetching the formatting of the last typed word after a delay, in order to detect if there is a spelling error, errors can occur if the underlying object dies or is replaced. Description of how this pull request fixes the issue: Catch Exception rather than RuntimeError when fetching formatting by calling GetTextWithFields. Note that this exception will still be logged at debug warning.
Parents
Loading