mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-21 00:01:53 +03:00
Update glances_sparklines.py
This commit is contained in:
parent
7228a915bb
commit
3752f1fed3
@ -36,7 +36,7 @@ except ImportError as e:
|
||||
|
||||
try:
|
||||
'┌┬┐╔╦╗╒╤╕╓╥╖│║─═├┼┤╠╬╣╞╪╡╟╫╢└┴┘╚╩╝╘╧╛╙╨╜'.encode(sys.stdout.encoding)
|
||||
except (UnicodeEncodeError, TypeError):
|
||||
except (UnicodeEncodeError, TypeError) as e:
|
||||
logger.warning("UTF-8 is mandatory for sparklines ({})".format(e))
|
||||
sparklines_module = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user