Skip to content

Commit

Permalink
better handle empty value
Browse files Browse the repository at this point in the history
Co-authored-by: Mauro Amico <[email protected]>
  • Loading branch information
cekk and mamico authored Nov 23, 2023
1 parent 090a1c8 commit 93d172c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/design/plone/policy/restapi/search_filters/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def reply(self):
utils = getToolByName(self.context, "plone_utils")

sections = []
for setting in json.loads(settings):
for setting in json.loads(settings or "[]"):
items = []
for section_settings in setting.get("items") or []:
for uid in section_settings.get("linkUrl") or []:
Expand Down

0 comments on commit 93d172c

Please sign in to comment.