From 63a10dd4b8e3ded9d9563c251fd9050d61d5ef87 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sat, 12 Apr 2025 20:03:22 +0300 Subject: [PATCH] Update error logging for missing messages in PostParser to include empty message check --- post_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/post_parser.py b/post_parser.py index cdd7e5f..b3fc393 100644 --- a/post_parser.py +++ b/post_parser.py @@ -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':