Skip to content

Commit

Permalink
remove old try/except
Browse files Browse the repository at this point in the history
  • Loading branch information
helylle committed Sep 4, 2024
1 parent e188757 commit 2a0366b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/eduid/userdb/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,7 @@ def _parse_ladok(cls, data: dict[str, Any]) -> Optional[Ladok]:
"""
ladok = data.pop("ladok", None)
if ladok is not None:
# TODO: This try/except is to flush out old format of ladok data from development, remove soon!
try:
return Ladok.from_dict(ladok)
except:
return None
return Ladok.from_dict(ladok)
return None

@classmethod
Expand Down

0 comments on commit 2a0366b

Please sign in to comment.