diff --git a/main.py b/main.py index 4f6b188..c643d2c 100644 --- a/main.py +++ b/main.py @@ -52,7 +52,7 @@ async def send_post(post: E621Post, tag_list: List[str]): character_tags = post.tags.character copyright_tags = post.tags.copyright caption = '\n'.join(l for l in [ - f'Monitored tags: {format_tags(monitored_tags) or "None"}', + f'Monitored tags: {format_tags(monitored_tags)}', artist_tags and f'Artist: {format_tags(artist_tags)}', character_tags and f'Character: {format_tags(character_tags)}', copyright_tags and f'Copyright: {format_tags(copyright_tags)}', @@ -118,6 +118,8 @@ async def send_post(post: E621Post, tag_list: List[str]): await redis.sadd('e621:sent', post.id) except Exception as e: logging.exception(e) + else: + logging.warning('Not sending because url is None') except Exception as e: logging.exception(e)