Skip to content

Commit

Permalink
Merge pull request #6991 from xoriole/fix/date-type-error
Browse files Browse the repository at this point in the history
Handle TypeError on tdef to metadata conversion
  • Loading branch information
xoriole authored Aug 12, 2022
2 parents 18c21be + f447b22 commit 49f4d70
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def tdef_to_metadata_dict(tdef):

try:
torrent_date = datetime.fromtimestamp(tdef.get_creation_date())
except ValueError:
except (ValueError, TypeError):
torrent_date = EPOCH

return {
Expand Down

0 comments on commit 49f4d70

Please sign in to comment.