Issue #25 resolved

Unicode breakage

michael b
repo owner created an issue

Another unicode bug :(

I need to comb through everything to make sure it is unicode friendly. I have no idea why i cannot reproduce this however since i already tested with unicode attributes.

This one in particular is "unicode in categories".

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 113, in add_app_clicked
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 95, in _show_choose_dialog
    self.choose_dialog = self.ChooseDialog() # pylint: disable=E1102
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 38, in __new__
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 54, in finish_initializing
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 70, in populate_desktop_entry_list
    self.app_list = self.app_list.filter_games()
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 91, in filter_games
    return DesktopEntryList(filter(game_filter, self))
  File "/usr/lib/python2.7/dist-packages/fsgamer/", line 89, in game_filter
    l = map(str.lower, item.getCategories())
TypeError: descriptor 'lower' requires a 'str' object but received a 'unicode'

Comments (5)

  1. Log in to comment