Skip to content

Commit

Permalink
Merge pull request #1559 from yoganandc/patch-1
Browse files Browse the repository at this point in the history
Bug fix for UTF-8 check
  • Loading branch information
nicolargo committed Nov 16, 2019
2 parents 7228a91 + 3752f1f commit 9eb4833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glances/outputs/glances_sparklines.py
Expand Up @@ -36,7 +36,7 @@

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

Expand Down

0 comments on commit 9eb4833

Please sign in to comment.