Code clean up. Better debugging
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user