Upload files to "/"
All checks were successful
Build and Push Docker Image / test (push) Successful in 14s
Build and Push Docker Image / build_and_push (push) Successful in 2m56s

This commit is contained in:
Admin User 2025-06-18 10:35:35 +00:00
parent 295b9d22a7
commit 13c5f21f58

View File

@ -117,7 +117,9 @@ SCORE_TO_CODE_MAP = {
def safe_get(d, *keys):
"""Attempts both snake_case and camelCase keys."""
"""Attempts both snake_case and camelCase keys in a dict, handles None safely."""
if not isinstance(d, dict):
return {}
for key in keys:
if key in d:
return d[key]