From 89c384766a25726549cbd5c8e94177ebd614b003 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 29 Apr 2020 00:07:38 +0100 Subject: [PATCH] Apply defaults loading fix --- defaults.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults.py b/defaults.py index 01b48179..ccff6dd4 100644 --- a/defaults.py +++ b/defaults.py @@ -748,7 +748,7 @@ class FlatCAMDefaults: # 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.factory_defaults[k])