diff options
| author | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-21 18:36:31 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@glatzor.de> | 2008-08-21 18:36:31 +0200 |
| commit | fcb99cb79276d87ec47dedd7be3b0eefd278a0df (patch) | |
| tree | 2f81adf4d12f648ec72107699a56168ee885233f /apt/cache.py | |
| parent | 312c6465f3ac7da68c610a01b4856cb45ae62b34 (diff) | |
| download | python-apt-fcb99cb79276d87ec47dedd7be3b0eefd278a0df.tar.gz | |
Small fix: catch dict exceptions in getProvidingPackages
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py index e59e30c3..3fd1e996 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -204,7 +204,7 @@ class Cache(object): vp = self._cache[virtual] if len(vp.VersionList) != 0: return providers - except IndexError: + except KeyError: return providers for pkg in self: v = self._depcache.GetCandidateVer(pkg._pkg) |
