General clean up

This commit is contained in:
Scott Idem
2021-03-17 20:53:52 +00:00
parent b57e51e8e7
commit 166a2212b9
4 changed files with 41 additions and 17 deletions

View File

@@ -86,7 +86,7 @@ class Order_Cart_Line_Base(BaseModel):
log.setLevel(logging.WARNING)
log.debug(locals())
if values['product_id_random']:
if values.get('product_id_random', None):
return redis_lookup_id_random(record_id_random=values['product_id_random'], table_name='product')
return None