[OTHER] Catch only Exception, not BaseException
This commit is contained in:
@@ -346,7 +346,7 @@ class TaskPanel(object):
|
||||
name, info = self.addCustomProperty(self.obj, dialog)
|
||||
try:
|
||||
setattr(obj, nam, val)
|
||||
except:
|
||||
except Exception:
|
||||
# this can happen if the old enumeration value doesn't exist anymore
|
||||
pass
|
||||
newVal = PathUtil.getPropertyValueString(obj, nam)
|
||||
|
||||
@@ -186,7 +186,7 @@ def isValidFileName(filename):
|
||||
try:
|
||||
with open(filename, "w") as tempfile:
|
||||
return True
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user