From 4f3c0a5c6b564f40ab5950c16aa1f2282a594c31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 4 Jul 2013 10:36:53 +0200
Subject: [PATCH] Do not fail if bt5 file can't be read

---
 product/ERP5/Document/BusinessTemplate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 2bc41b2ddf..02ea17feed 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -5028,7 +5028,7 @@ Business Template is a set of definitions, such as skins, portal types and categ
         from Products.ERP5VCS.WorkingCopy import NotAWorkingCopyError
         try:
           self.setRevision(self.getVcsTool().newRevision())
-        except NotAWorkingCopyError:
+        except (NotAWorkingCopyError, IOError):
           raise ImportError
       except ImportError:
         self.updateRevisionNumber()
-- 
2.30.9