diff --git a/src/utils/utils.py b/src/utils/utils.py index dd65b55..3d4a69c 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -31,6 +31,8 @@ def parse_login_scope(secret_json, key): return secret_json["login"][key] def parse_fields_scope(secret_json, key): + if "fields" not in secret_json: + return None for entry in secret_json["fields"]: if entry['name'] == key: return entry['value']