Skip to content

Commit

Permalink
parser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterSurda committed Jun 2, 2024
1 parent f356287 commit b985132
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taiga/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def parse(cls, requester, entry):
return entry
for key_to_parse, cls_to_parse in cls.parser.items():
if key_to_parse in entry:
entry[key_to_parse] = cls_to_parse.parse(requester, entry[key_to_parse])
if entry[key_to_parse] is None:
entry[key_to_parse] = None
else:
entry[key_to_parse] = cls_to_parse.parse(requester, entry[key_to_parse])
return cls(requester, **entry)

def __repr__(self):
Expand Down

0 comments on commit b985132

Please sign in to comment.