Merge pull request #75 from graynk/master
fix for non-latin symbols in GPM module
This commit is contained in:
commit
fc516102b8
1 changed files with 8 additions and 2 deletions
|
@ -52,7 +52,13 @@ class Module(bumblebee.engine.Module):
|
||||||
status = bumblebee.util.execute("gpmdp-remote status")
|
status = bumblebee.util.execute("gpmdp-remote status")
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
pass
|
pass
|
||||||
self._status = status.split("\n")[0].lower()
|
try:
|
||||||
self._tags = info.split("\n")[0]
|
unicode_status = status.decode('utf-8')
|
||||||
|
unicode_info = info.decode('utf-8')
|
||||||
|
except AttributeError:
|
||||||
|
unicode_status = status
|
||||||
|
unicode_info = info
|
||||||
|
self._status = unicode_status.split("\n")[0].lower()
|
||||||
|
self._tags = unicode_info.split("\n")[0]
|
||||||
|
|
||||||
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
|
||||||
|
|
Loading…
Reference in a new issue