GNOME Bugzilla – Bug 587713
exception is raised in PK as get_role_localised_present_from_enum returns None not a string
Last modified: 2014-08-06 14:22:23 UTC
Steps to reproduce: import packagekit.gtkwidgets pk=packagekit.gtkwidgets.PackageKitInstaller() pk.install_by_name('minbar',True) Stack trace: Actual results: Traceback (most recent call last):
+ Trace 216314
try: r=_pk.install(self.__pkgs, True)
ret = self._progress.run()
self.set_title(role)
Other information: I suggest that all such functions fall back to '' instead of None, like this def get_role_localised_present_from_enum(enum): if PRESENT_ROLE.has_key(enum): return PRESENT_ROLE[enum] else: return ''
I'm not spending much more developer time on gnome-packagekit, see gnome-software instead. Sorry.