Skip to content

Commit bc9d404

Browse files
committed
fix PDP not handling debug key with a value of null in the response
1 parent 4658451 commit bc9d404

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

horizon/enforcer/api.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
KongWrappedAuthorizationQuery,
4545
)
4646
from horizon.enforcer.schemas_v1 import AuthorizationQueryV1
47-
from horizon.enforcer.utils.headers_utils import get_case_insensitive
4847
from horizon.enforcer.utils.mapping_rules_utils import MappingRulesUtils
4948
from horizon.enforcer.utils.statistics_utils import StatisticsManager
5049
from horizon.state import PersistentStateHandler
@@ -201,7 +200,7 @@ def get_v1_processed_query(result: dict) -> Optional[dict]:
201200

202201

203202
def get_v2_processed_query(result: dict) -> Optional[dict]:
204-
return result.get("debug", {}).get("input", None)
203+
return (result.get("debug", {}) or {}).get("input", None)
205204

206205

207206
async def notify_seen_sdk(

0 commit comments

Comments
 (0)