Commit be378195 authored by Kevin Deldycke's avatar Kevin Deldycke

Be less agressive


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5399 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6909292e
......@@ -22,13 +22,15 @@ except ImportError:
from Products.ERP5Type.patches.string import Template
from zLOG import LOG
class LocalizerPatchError(Exception):
"""Error wen trying to use or apply the Localizer patch"""
# This patch will not work if Translation Service Zope product exist on the system
try:
from Products import TranslationService
raise LocalizerPatchError, "Translation Service Zope Product (%s) and Translation Service tools must be deleted to let Localizer Patch work." % (repr(TranslationService))
LOG("LocalizerPatchError", 100,"Translation Service Zope Product (%s) and Translation Service tools must be deleted to let Localizer Patch work." % (repr(TranslationService)))
except ImportError:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment