diff --git a/zoo/zoo_nanterre/qf.py b/zoo/zoo_nanterre/qf.py index 73e866e..44f81ce 100644 --- a/zoo/zoo_nanterre/qf.py +++ b/zoo/zoo_nanterre/qf.py @@ -64,8 +64,8 @@ class QF(object): if response: for qf in response: try: - qf['annee_imposition'] = force_text(int(re.findall('(\d+)', qf['libelle'])[0]) - 1) - except: + qf['annee_imposition'] = force_text(int(re.findall(r'(\d+)', qf['libelle'])[0]) - 1) + except Exception: qf['annee_imposition'] = 'inconnue' return response, error