[DRAFT] Catch only Exception, not BaseException
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user