Catch only Exception according to PEP 352
This commit is contained in:
1 parent
1aecbb841f
commit
d16388a664
1 file changed
+1
-1
+1
-1
@@ -102,7 +102,7 @@ class Currency(ModelSQL, ModelView):
|
||||
for i in grouping:
|
||||
if not isinstance(i, int):
|
||||
return False
|
||||
except:
|
||||
except Exception:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
Reference in new issue
Block a user