Add check to make sure KeyError doesn't appear when given wrong event payload.

main
Hammy 4 years ago
parent f2e4004dd7
commit a03c59e6c9

@ -14,6 +14,7 @@ def event_handler(event, context):
}
for key, values in event.items():
if key in Actions:
Actions[key](values)
winston.send_random_tweet()

Loading…
Cancel
Save