Catch only Exception according to PEP 352

This commit is contained in:
Cédric Krier committed 2010-07-08 19:56:00 +02:00
1 parent 1aecbb841f
commit d16388a664
1 file changed
+1 -1
+1 -1
View File
@@ -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