Announced post could be media without text content

merge-requests/30/head
Bob Mottram 2023-01-08 21:43:59 +00:00
parent adf98ebf93
commit 6aecffd75c
1 changed files with 1 additions and 1 deletions

View File

@ -5282,7 +5282,7 @@ def download_announce(session, base_dir: str, http_prefix: str,
base_dir, nickname, domain, post_id, base_dir, nickname, domain, post_id,
recent_posts_cache) recent_posts_cache)
return None return None
if not announced_json.get('content'): if 'content' not in announced_json:
print('WARN: announced post does not have content ' + print('WARN: announced post does not have content ' +
str(announced_json)) str(announced_json))
_reject_announce(announce_filename, _reject_announce(announce_filename,