catching another error ...

Signed-off-by: Konrad <klux2@hs-mittweida.de>
This commit is contained in:
Konrad 2019-09-27 21:32:48 +02:00
parent 14535ba228
commit 5a565237e6

View file

@ -380,7 +380,7 @@ def process_json(d):
if isinstance(d, dict):
try:
return {int(k): getattr(Language, v) for k, v in d.items()}
except (ValueError, TypeError):
except (ValueError, TypeError, AttributeError):
return d
return d