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
...@@ -4568,8 +4568,12 @@ Business Template is a set of definitions, such as skins, portal types and categ ...@@ -4568,8 +4568,12 @@ Business Template is a set of definitions, such as skins, portal types and categ
self.clean() self.clean()
try: try:
self.setRevision(self.getVcsTool().newRevision()) from Products.ERP5VCS.WorkingCopy import NotAWorkingCopyError
except NotAWorkingCopyError: try:
self.setRevision(self.getVcsTool().newRevision())
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