diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/event.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/event.py b/commands/event.py index 034ce36..b4839ed 100644 --- a/commands/event.py +++ b/commands/event.py @@ -73,7 +73,10 @@ async def create_event( user=last_movie["user"] ) - events[-1] = event_dict + if len(events) > 0: + events[-1] = event_dict + else: + events.append(event_dict) await update.message.reply_text( EVENT_EDITED.format( |