nanterre: silence warning about bad regexp (#46763)
This commit is contained in:
parent
8881799eb0
commit
404c008336
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue