catching another error ...
Signed-off-by: Konrad <klux2@hs-mittweida.de>
This commit is contained in:
parent
14535ba228
commit
5a565237e6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue