summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-03-17 11:27:48 +0100
committerGuido Günther <agx@sigxcpu.org>2014-03-17 11:27:48 +0100
commitd86eced1ab7f63f001814fce0c64e0afae72c93e (patch)
tree679142042372240769aac47528b173fe7d74779b
parent2980c2027a759465562bff1723e2cdd58033a522 (diff)
Distro: Fail on AttributeError
since _pkg_services is by default an empty dict now and if it's not there something is wrong.
-rwxr-xr-xwhatmaps2
1 files changed, 1 insertions, 1 deletions
diff --git a/whatmaps b/whatmaps
index 5a6704e..cca0701 100755
--- a/whatmaps
+++ b/whatmaps
@@ -127,7 +127,7 @@ class Distro(object):
"""
try:
return klass._pkg_services[pkg.name]
- except (KeyError, AttributeError):
+ except KeyError:
return []
@classmethod