Check if option is present

This commit is contained in:
sayali 2020-10-14 17:38:32 -07:00
parent 4d5e712e85
commit f38380d156

View File

@ -93,7 +93,7 @@ class Authority(db.Model):
return None
for option in json.loads(self.options):
if option["name"] == 'cab_compliant':
if "name" in option and option["name"] == 'cab_compliant':
return option["value"]
return None