Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
fix unhandled TypeError
Browse files Browse the repository at this point in the history
- previously a TypeError could be caused here, if updatedAt was existent but just [] (None), now we just catch all Exception objects
- fixes #147
  • Loading branch information
Avnsx authored Aug 22, 2023
1 parent bc0b8d4 commit dd7104e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fansly_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ def parse_variants(content: dict, content_type: str): # content_type: media / pr
"""
try:
created_at = int(content['updatedAt'])
except KeyError:
except Exception:
created_at = int(media_info[content_type]['createdAt'])
download_url = highest_variants_resolution_url

Expand Down

0 comments on commit dd7104e

Please sign in to comment.