stop spamming error log

master
Aevann 2024-04-20 16:55:22 +02:00
parent 033a3ec6a4
commit 6129245828
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ def refresh_chat(chat_id):
def speak(data, v):
if v.is_banned: return ''
chat_id = int(data['chat_id'])
try: chat_id = int(data['chat_id'])
except: return ''
chat = g.db.get(Chat, chat_id)
if not chat: return ''