Skip to content

Commit

Permalink
Added comment to try/except on import of IConfigurationChangedEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
eikichi18 committed Oct 24, 2018
1 parent 671f0cc commit 65b187e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plone/app/discussion/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
from zope.component import queryUtility
from zope.component.hooks import getSite

# try/except was added because Configuration Changed Event was moved inside the
# controlpanel file in the PR #2495 on Products.CMFPlone
try:
from Products.CMFPlone.interfaces.controlpanel import IConfigurationChangedEvent # noqa: E501
except ImportError:
from Products.CMFPlone.interfaces import IConfigurationChangedEvent # noqa: E501
from Products.CMFPlone.interfaces import IConfigurationChangedEvent


class DiscussionSettingsEditForm(controlpanel.RegistryEditForm):
Expand Down

0 comments on commit 65b187e

Please sign in to comment.