diff --git a/bot/handler.py b/bot/handler.py index d472c4f..6a8bfc8 100644 --- a/bot/handler.py +++ b/bot/handler.py @@ -14,6 +14,7 @@ def event_handler(event, context): } for key, values in event.items(): - Actions[key](values) + if key in Actions: + Actions[key](values) winston.send_random_tweet()