ArturGaspar/krunner-appmenu

Does not work, AttributeError: 'str' object has no attribute 'decode'

Closed this issue · 0 comments

service_name = service_name.decode()

AttributeError: 'str' object has no attribute 'decode'

I had to add a condition to check if decode is an existed attribute or not:

line: 73:

- if service_name is not None:
+ if service_name is not None and hasattr(service_name, 'decode'):

line: 77:

- if objpath is not None:
+ if objpath is not None and hasattr(objpath, 'decode'):

it works now, just wanted to let you know :)

thank you.