[yum-commits] Branch 'yum-3_2_X' - yum/history.py
James Antill
james at osuosl.org
Wed May 5 05:14:57 UTC 2010
yum/history.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d1f047afc6bd2c7afe5f2db74f190015a7894af7
Author: James Antill <james at and.org>
Date: Wed May 5 01:14:50 2010 -0400
Catch both kinds of exceptions, on sqlite opens (RHEL-5 needs this, for one)
diff --git a/yum/history.py b/yum/history.py
index 7e0f399..cba6bf3 100644
--- a/yum/history.py
+++ b/yum/history.py
@@ -223,7 +223,7 @@ class YumHistory:
try:
self._conn = sqlite.connect(self._db_file)
- except sqlite.OperationalError:
+ except (sqlite.OperationalError, sqlite.DatabaseError):
self.conf.readable = False
return None
More information about the Yum-commits
mailing list