[DRAFT] Catch only Exception, not BaseException

This commit is contained in:
Chris Hennes
2021-02-10 14:08:56 -06:00
committed by wwmayer
parent 8228d64ac4
commit fe7e45a7de
16 changed files with 26 additions and 26 deletions

View File

@@ -80,7 +80,7 @@ def make_clone(obj, delta=None, forcedraft=False):
else:
try:
clonefunc = getattr(Arch,"make"+obj[0].Proxy.Type)
except:
except Exception:
pass # not a standard Arch object... Fall back to Draft mode
else:
cl = clonefunc()
@@ -96,7 +96,7 @@ def make_clone(obj, delta=None, forcedraft=False):
cl.Role = base.Role
cl.Description = base.Description
cl.Tag = base.Tag
except:
except Exception:
pass
if App.GuiUp:
gui_utils.format_object(cl,base)