Skip to content

Commit 76488fd

Browse files
committed
fix lint long line warnings
1 parent 1b3c3c9 commit 76488fd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

addon/globalPlugins/MathCAT/MathCATPreferences.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

0 commit comments

Comments
 (0)