Fix output for curses

This commit is contained in:
Drakarah 2025-11-23 10:47:10 +00:00
parent 73f45dd9a8
commit bbb733d6cb
1 changed files with 2 additions and 1 deletions

View File

@ -217,7 +217,8 @@ class SmartPlugin(GlancesPluginModel):
device_stat[smart_stat]['name'][: name_max_width - 1].replace('_', ' '), width=name_max_width - 1
)
ret.append(self.curse_add_line(msg))
msg = '{:>8}'.format(device_stat[smart_stat]['raw'])
raw = device_stat[smart_stat]['raw']
msg = '{:>8}'.format("" if raw is None else str(raw))
ret.append(self.curse_add_line(msg))
return ret