changeset 197:c2d692c8f599

stronger try except for store cache
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 02 Apr 2012 14:43:41 +0200
parents dea67dae27a4
children 384dd4b11b27
files hgext/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/obsolete.py	Wed Mar 28 21:13:46 2012 +0200
+++ b/hgext/obsolete.py	Mon Apr 02 14:43:41 2012 +0200
@@ -101,7 +101,7 @@
 try:
     from mercurial.localrepo import storecache
     storecache('babar') # to trigger import
-except TypeError:
+except (TypeError, ImportError):
     def storecache(*args):
         return scmutil.filecache(*args, instore=True)