File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
addon/globalPlugins/MathCAT Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,9 @@ def set_ui_values(self):
423423 break
424424 i += 1
425425 except Exception as e :
426- log .exception (f"MathCAT: An exception occurred in set_ui_values ('{ user_preferences ['Speech' ]['Language' ]} '): { e } " )
426+ log .exception (
427+ f"MathCAT: An exception occurred in set_ui_values ('{ user_preferences ['Speech' ]['Language' ]} '): { e } "
428+ )
427429 # the language in the settings file is not in the folder structure, something went wrong,
428430 # set to the first in the list
429431 self .m_choiceLanguage .SetSelection (0 )
@@ -649,7 +651,9 @@ def write_user_preferences():
649651 try :
650652 libmathcat .SetPreference ("Language" , user_preferences ["Speech" ]["Language" ])
651653 except Exception as e :
652- log .exception (f'Error in trying to set MathCAT "Language" preference to "{ user_preferences ["Speech" ]["Language" ]} ": { e } ' )
654+ log .exception (
655+ f'Error in trying to set MathCAT "Language" preference to "{ user_preferences ["Speech" ]["Language" ]} ": { e } '
656+ )
653657 if not os .path .exists (UserInterface .path_to_user_preferences_folder ()):
654658 # create a folder for the user preferences
655659 os .mkdir (UserInterface .path_to_user_preferences_folder ())
You can’t perform that action at this time.
0 commit comments