From 6372b42c3eae7e7454adc84e776a311c83e98191 Mon Sep 17 00:00:00 2001
From: Arnaud Fontaine <arnaud.fontaine@nexedi.com>
Date: Thu, 15 Sep 2011 13:58:35 +0900
Subject: [PATCH] Fix typo in exception class name.

---
 axi-cache |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/axi-cache b/axi-cache
index c8109c9..cc4c928 100755
--- a/axi-cache
+++ b/axi-cache
@@ -71,9 +71,9 @@ if not helponly:
     def readVocabulary():
         try:
             fin = open(DEBTAGS_VOCABULARY)
-        except Error, e:
+        except IOError, e:
             # Only show this when being verbose
-            #print >>sys.stderr, "Cannot read %s: %s. Please install `debtags' t" % (DEBTAGS_VOCABULARY, str(e))
+            print >>sys.stderr, "Cannot read %s: %s. Please install `debtags' t" % (DEBTAGS_VOCABULARY, str(e))
             return None, None
         facets = dict()
         tags = dict()
@@ -139,7 +139,7 @@ if not helponly:
             if os.path.exists(CACHEFILE):
                 try:
                     self.cache.read(CACHEFILE)
-                except Error, e:
+                except IOError, e:
                     print >>sys.stderr, e
                     print >>sys.stderr, "ignoring %s which seems to be corrupted" % CACHEFILE
 
-- 
1.7.5.4

