Update error logging for missing messages in PostParser to include empty message check

This commit is contained in:
vvzvlad
2025-04-12 20:03:22 +03:00
parent 2cf5b1c27f
commit 63a10dd4b8
+2 -2
View File
@@ -98,8 +98,8 @@ class PostParser:
if Config["debug"]: print(message)
if not message:
logger.error(f"post_not_found: channel {channel}, post_id {post_id}")
if not message or getattr(message, 'empty', False):
logger.error(f"post_not_found_or_empty: channel {channel}, post_id {post_id}")
return None
if output_type == 'html':