From f38380d156a29d5403ba43c2ef7e07b0d1b57c40 Mon Sep 17 00:00:00 2001 From: sayali Date: Wed, 14 Oct 2020 17:38:32 -0700 Subject: [PATCH] Check if option is present --- lemur/authorities/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/authorities/models.py b/lemur/authorities/models.py index cced3ed1..d1b41a21 100644 --- a/lemur/authorities/models.py +++ b/lemur/authorities/models.py @@ -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