diff --git a/acpbot.py b/acpbot.py index 58c544d..3bc6b6a 100644 --- a/acpbot.py +++ b/acpbot.py @@ -141,7 +141,7 @@ async def main(): except MessageIdInvalidError: chat_data['lastpinned'] = 0 to_write = True - except ChatNotModifiedError: + except (ChatNotModifiedError, AttributeError): pass processing_chats[e.chat_id][2] = False if to_delete: