Commit e0ba8bcb authored by Julien Muchembled's avatar Julien Muchembled

Fix ImportError

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44054 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd90b868
...@@ -4567,9 +4567,13 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4567,9 +4567,13 @@ Business Template is a set of definitions, such as skins, portal types and categ
# Make sure that everything is sane. # Make sure that everything is sane.
self.clean() self.clean()
try:
from Products.ERP5VCS.WorkingCopy import NotAWorkingCopyError
try: try:
self.setRevision(self.getVcsTool().newRevision()) self.setRevision(self.getVcsTool().newRevision())
except NotAWorkingCopyError: except NotAWorkingCopyError:
raise ImportError
except ImportError:
self.updateRevisionNumber() self.updateRevisionNumber()
self._setTemplateFormatVersion(1) self._setTemplateFormatVersion(1)
self.storeTemplateItemData() self.storeTemplateItemData()
......
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