try:
event['ids']
except NameError:
ids = None
This is throwing a KeyError. I just want to check if the event variable exists and set to none or pass the value if it does. I have also tried to use
if (len(event['ids']) < 1)
but get an error. Am I missing something? I may or may not have all my event keys passed and want to check for existence.