[sulfur.views] catch TypeError in case of concatenation failure

This commit is contained in:
Fabio Erculiani
2011-11-21 18:42:31 +01:00
parent 65aaad61d9
commit 16ea86b711
+6 -1
View File
@@ -841,7 +841,12 @@ class EntropyPackageView:
elif obj.is_pkgset_cat:
break
else:
self.set_filtering_string(obj.onlyname + "/")
try:
s = obj.onlyname + "/"
except TypeError:
# might be tuple or whatever!
break
self.set_filtering_string(s)
break
mymenu = PkgInfoMenu(self._entropy, obj, self.ui.main)