summaryrefslogtreecommitdiff
path: root/portato/backend/catapult/system.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/catapult/system.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/portato/backend/catapult/system.py b/portato/backend/catapult/system.py
index 5b019e4..7584d13 100644
--- a/portato/backend/catapult/system.py
+++ b/portato/backend/catapult/system.py
@@ -86,9 +86,8 @@ class CatapultSystem (SystemInterface):
l = self.proxy.find_packages(key, set, masked, withVersion)
except dbus.DBusException, e:
name, data = str(e).split("\n")[-2].split(": ")[1:]
- debug((name, data))
- if name == "org.gentoo.catapult.AmbigousPackageError":
+ if name == catapult.CATAPULT_ERR_AMBIGUOUS_PACKAGE:
debug("Ambigous packages: %s.", data)
l = []
for cp in data.split(","):