diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-01 23:36:14 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-01 23:36:14 +0200 |
commit | 86bbc23fbc94c684be1ab5d1bbbb58c35477aa91 (patch) | |
tree | dce0d6a2dd3e78046d6595a14449e45abbe6880c /portato/backend/catapult | |
parent | acf7b55874cd33990bd9daa45d784a8e6d934690 (diff) | |
download | portato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.tar.gz portato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.tar.bz2 portato-86bbc23fbc94c684be1ab5d1bbbb58c35477aa91.zip |
Use exception names provided by catapult
Diffstat (limited to '')
-rw-r--r-- | portato/backend/catapult/system.py | 3 |
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(","): |