From 3371259be1e936405b16bc447d6e90aab4809f81 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 4 Oct 2006 20:55:22 +0200 Subject: * DistUpgrade/DistUpgradeCache.py: - protect against KeyErrors as well --- DistUpgrade/DistUpgradeCache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'DistUpgrade/DistUpgradeCache.py') 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 -- cgit v1.2.3