Skip to content

Commit

Permalink
Fix for missing entry in seen hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
nanos committed Jul 2, 2024
1 parent c5af476 commit 526b62f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions find_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,6 +1611,8 @@ def fetch_timeline_context(timeline_posts, token, parsed_urls, seen_hosts, seen_
elif('info' in serverInfo and serverInfo['info'] == None and serverAge.total_seconds() > 60 * 60 ):
# Don't cache failures for more than 24 hours
seen_hosts.pop(host)
elif 'peertubeApiSupport' not in serverInfo:
seen_hosts.pop(host)
else:
seen_hosts = ServerList({})

Expand Down

0 comments on commit 526b62f

Please sign in to comment.