Does not work, AttributeError: 'str' object has no attribute 'decode'
Closed this issue · 0 comments
abdumu commented
krunner-appmenu/krunner_appmenu.py
Line 73 in 6bd17b1
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.