Code clean up. Better debugging

This commit is contained in:
Scott Idem
2021-09-29 16:16:04 -04:00
parent be788fc5e6
commit c77e066f9e
5 changed files with 20 additions and 12 deletions

View File

@@ -164,7 +164,7 @@ class Event_Session_Base(BaseModel):
log.setLevel(logging.WARNING)
log.debug(locals())
if values['event_location_id_random']:
if values.get('event_location_id_random', None):
return redis_lookup_id_random(record_id_random=values['event_location_id_random'], table_name='event_location')
return None