@ -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: