Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid an error if category root folder does not exist #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpeeters
Copy link
Member

This fix the following traceback :

Traceback (innermost last):

    Module ZPublisher.Publish, line 138, in publish
    Module ZPublisher.mapply, line 77, in mapply
    Module ZPublisher.Publish, line 48, in call_object
    Module Products.CMFPlone.CatalogTool, line 448, in manage_catalogRebuild
    Module plone.app.discussion.patches, line 52, in patchedClearFindAndRebuild
    Module OFS.FindSupport, line 239, in ZopeFindAndApply
    Module OFS.FindSupport, line 239, in ZopeFindAndApply
    Module OFS.FindSupport, line 239, in ZopeFindAndApply
    Module OFS.FindSupport, line 239, in ZopeFindAndApply
    Module OFS.FindSupport, line 239, in ZopeFindAndApply
    Module OFS.FindSupport, line 227, in ZopeFindAndApply
    Module plone.app.discussion.patches, line 31, in indexObject
    Module Products.CMFCore.CMFCatalogAware, line 68, in indexObject
    Module Products.CMFPlone.CatalogTool, line 331, in indexObject
    Module Products.CMFCore.CatalogTool, line 301, in reindexObject
    Module Products.CMFPlone.CatalogTool, line 349, in catalog_object
    Module Products.ZCatalog.ZCatalog, line 506, in catalog_object
    Module Products.ZCatalog.Catalog, line 342, in catalogObject
    Module Products.ZCatalog.Catalog, line 293, in updateMetadata
    Module Products.ZCatalog.Catalog, line 414, in recordify
    Module plone.indexer.wrapper, line 65, in __getattr__
    Module plone.indexer.delegate, line 20, in __call__
    Module collective.iconifiedcategory.indexes, line 24, in content_category_uid
    Module collective.iconifiedcategory.utils, line 130, in get_category_object
    Module collective.iconifiedcategory.utils, line 74, in get_config_root

ValueError: Categories config cannot be found

@coveralls
Copy link

Coverage Status

coverage: 93.115%. remained the same
when pulling fe9f37b on fix_missing_config
into 52b9d9a on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants