0001-nanterre-silence-warning-about-bad-regexp-46763.patch
zoo/zoo_nanterre/qf.py | ||
---|---|---|
64 | 64 |
if response: |
65 | 65 |
for qf in response: |
66 | 66 |
try: |
67 |
qf['annee_imposition'] = force_text(int(re.findall('(\d+)', qf['libelle'])[0]) - 1) |
|
68 |
except: |
|
67 |
qf['annee_imposition'] = force_text(int(re.findall(r'(\d+)', qf['libelle'])[0]) - 1)
|
|
68 |
except Exception:
|
|
69 | 69 |
qf['annee_imposition'] = 'inconnue' |
70 | 70 |
return response, error |
71 | 71 | |
72 |
- |