From d86eced1ab7f63f001814fce0c64e0afae72c93e Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 17 Mar 2014 11:27:48 +0100 Subject: Distro: Fail on AttributeError since _pkg_services is by default an empty dict now and if it's not there something is wrong. --- whatmaps | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whatmaps') 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 -- cgit v1.2.3