Handle none case

main
Bob Mottram 2023-01-19 18:39:55 +00:00
parent 39ba280cb1
commit fd5cfa4016
1 changed files with 3 additions and 0 deletions

View File

@ -747,6 +747,9 @@ def get_post_domains(session, outbox_url: str, max_posts: int, debug: bool,
user_feed = parse_user_feed(signing_priv_key_pem, user_feed = parse_user_feed(signing_priv_key_pem,
session, outbox_url, as_header, session, outbox_url, as_header,
project_version, http_prefix, domain, debug) project_version, http_prefix, domain, debug)
if not user_feed:
return post_domains
for item in user_feed: for item in user_feed:
i += 1 i += 1
if i > max_posts: if i > max_posts: