- handled a possible situation in App.load_defaults() method

- fixed some issues in FlatCAMDB that may appear in certain scenarios
This commit is contained in:
Marius Stanciu
2020-04-28 09:48:49 +03:00
committed by Marius
parent e36ed05a36
commit 2549e9925e
4 changed files with 52 additions and 24 deletions

View File

@@ -3840,7 +3840,7 @@ class App(QtCore.QObject):
# may be stored as strings we check their types.
try:
target = eval(self.defaults[k])
except NameError:
except (NameError, TypeError):
# it's an unknown string leave it as it is
target = deepcopy(self.defaults[k])