nanterre: silence warning about bad regexp (#46763)

This commit is contained in:
Benjamin Dauvergne 2020-09-18 09:27:12 +02:00
parent 8881799eb0
commit 404c008336
1 changed files with 2 additions and 2 deletions

View File

@ -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