From d16388a6644cb8d84bdc083d14153a98436bdf39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Jul 2010 19:56:00 +0200 Subject: [PATCH] Catch only Exception according to PEP 352 --- currency.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/currency.py b/currency.py index 2ef349ee6e..4602938a84 100644 --- a/currency.py +++ b/currency.py @@ -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