diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-04 20:55:22 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-04 20:55:22 +0200 |
| commit | 3371259be1e936405b16bc447d6e90aab4809f81 (patch) | |
| tree | a15b1cedfe2be9988a3c13dbe9752284e85b662c /DistUpgrade/DistUpgradeCache.py | |
| parent | 6bc9ba7df538a541965d610490c19dd329496f53 (diff) | |
| download | python-apt-3371259be1e936405b16bc447d6e90aab4809f81.tar.gz | |
* DistUpgrade/DistUpgradeCache.py:
- protect against KeyErrors as well
Diffstat (limited to 'DistUpgrade/DistUpgradeCache.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 2 |
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 |
