summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-10-04 20:55:22 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-10-04 20:55:22 +0200
commit3371259be1e936405b16bc447d6e90aab4809f81 (patch)
treea15b1cedfe2be9988a3c13dbe9752284e85b662c
parent6bc9ba7df538a541965d610490c19dd329496f53 (diff)
downloadpython-apt-3371259be1e936405b16bc447d6e90aab4809f81.tar.gz
* DistUpgrade/DistUpgradeCache.py:
- protect against KeyErrors as well
-rw-r--r--DistUpgrade/DistUpgradeCache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py
index 1a7911c0..7d0d27e0 100644
--- a/DistUpgrade/DistUpgradeCache.py
+++ b/DistUpgrade/DistUpgradeCache.py
@@ -348,7 +348,7 @@ class MyCache(apt.Cache):
self._inRemovalBlacklist(pkg.name):
self.restore_snapshot()
return False
- except SystemError,e:
+ except (SystemError,KeyError),e:
loggging.warning("_tryMarkObsoleteForRemoval failed for '%s' (%s)" % (pkgname,e))
self.restore_snapshot()
return False