From 755da7c972cf1949a27290f53237a2829a5ed181 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 22 Nov 2021 21:25:49 +0200 Subject: [PATCH] - minor --- appGUI/preferences/PreferencesUIManager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/appGUI/preferences/PreferencesUIManager.py b/appGUI/preferences/PreferencesUIManager.py index 8f26960f..0927666b 100644 --- a/appGUI/preferences/PreferencesUIManager.py +++ b/appGUI/preferences/PreferencesUIManager.py @@ -749,7 +749,7 @@ class PreferencesUIManager: try: value = def_dict[field] # log.debug("value is " + str(value) + " and factor is "+str(factor)) - if factor is not None: + if factor is not None and not isinstance(value, str): value *= factor form_field = self.defaults_form_fields[field] @@ -757,7 +757,6 @@ class PreferencesUIManager: form_field.set_value(value) elif (units == 'IN' or units == 'MM') and (field == 'global_gridx' or field == 'global_gridy'): form_field.set_value(value) - except KeyError: pass except AttributeError: