mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-29 20:21:35 +03:00
Correct Unicode Error with sensors in client/servermod e
This commit is contained in:
parent
d5c185aec1
commit
aa784fed9a
@ -187,8 +187,8 @@ class Plugin(GlancesPlugin):
|
||||
label = i['label']
|
||||
try:
|
||||
msg = "{0:12} {1:3}".format(label[:11], i['unit'])
|
||||
except KeyError:
|
||||
msg = '{0:16}'.format(label[:15])
|
||||
except (KeyError, UnicodeEncodeError):
|
||||
msg = "{0:16}".format(label[:15])
|
||||
ret.append(self.curse_add_line(msg))
|
||||
msg = '{0:>7}'.format(i['value'])
|
||||
ret.append(self.curse_add_line(
|
||||
|
Loading…
Reference in New Issue
Block a user