Update glances_sparklines.py

This commit is contained in:
Yoganand Chandrasekhar 2019-11-13 21:31:41 -08:00 committed by GitHub
parent 7228a915bb
commit 3752f1fed3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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