Skip to content

Commit

Permalink
Prevent exceptions when many statuses are None
Browse files Browse the repository at this point in the history
  • Loading branch information
floriancargoet authored and kensanata committed Nov 7, 2023
1 parent 1eec7fc commit 9a181f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mastodon_archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def complete(statuses, page, func = None):
keys. That's why we fetch it all over again. Expiry helps,
obviously.
"""
seen = { str(status["id"]): status for status in statuses }
seen = { str(status["id"]): status for status in statuses if status is not None }
if not args.quiet:
progress = core.progress_bar()

Expand Down

0 comments on commit 9a181f6

Please sign in to comment.