nvda
603b32ac - Fix one log.exception string interpolation (#21198)

Commit
8 days ago
Fix one log.exception string interpolation (#21198) Closes #21200 Summary of the issue: NVDA's log.exception has not the same signature as Python's logging.Logger.exception and does not support lazy interpolation of its message string. However, in NVDA's code, a call to log.exception was done using this lazy interpolation, on the pattern of what can be done with Pyton's logging.Logger.exception. Description of user facing changes: Probably none. Only the log content should differ. Description of developer facing changes: In the example of #21200, logging the exception is now done correctly. : the following message is logged with its traceback Invalid dictionary entry 1 in D:\Cyrille\Dev\GIT\nvda\source\userConfig\speechDicts\voiceDicts.v1\oneCore\oneCore-Microsoft Hortense.dic: (abc) And the synth continues to speak. Description of development approach: Replaced lazy interpolation with f-string.
Author
Parents
Loading