WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5ebf594

Browse files
authored
Merge pull request #20 from collective/fix_missing_config
Avoid an error if category root folder does not exist
2 parents f3d3d0e + fe9f37b commit 5ebf594

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ Changelog
44
0.71 (unreleased)
55
-----------------
66

7-
- Nothing changed yet.
7+
- Avoid an error if category root folder does not exist
8+
[mpeeters]
89

910

1011
0.70 (2025-11-05)

src/collective/iconifiedcategory/indexes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ def content_category_uid(obj):
2222
return
2323
try:
2424
category_object = utils.get_category_object(obj, obj.content_category)
25-
except KeyError:
25+
except (KeyError, ValueError):
2626
return _marker
2727
return category_object.UID()

0 commit comments

Comments
 (0)