diff --git a/src/autobioebbing.py b/src/autobioebbing.py index 4aea00a..0dedb10 100644 --- a/src/autobioebbing.py +++ b/src/autobioebbing.py @@ -329,6 +329,9 @@ async def eb(client, c, conn, con, d, get_id, my_id, message_q): arg = int(arg[1]) except: await event.edit('Argument should be integer from 1 to 10') + + else: + arg = None reply = await client.get_messages(event.peer_id, ids=event.reply_to.reply_to_msg_id) when = int(datetime.timestamp(event.date)) t = reply.raw_text