mirror of
https://github.com/nicolargo/glances.git
synced 2025-01-02 06:27:55 +03:00
Quicklook plugin not working on Systemd #1537
This commit is contained in:
parent
faa4bd715d
commit
66c9fff716
@ -36,7 +36,7 @@ except ImportError as e:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
'┌┬┐╔╦╗╒╤╕╓╥╖│║─═├┼┤╠╬╣╞╪╡╟╫╢└┴┘╚╩╝╘╧╛╙╨╜'.encode(sys.stdout.encoding)
|
'┌┬┐╔╦╗╒╤╕╓╥╖│║─═├┼┤╠╬╣╞╪╡╟╫╢└┴┘╚╩╝╘╧╛╙╨╜'.encode(sys.stdout.encoding)
|
||||||
except UnicodeEncodeError:
|
except (UnicodeEncodeError, TypeError):
|
||||||
logger.warning("UTF-8 is mandatory for sparklines ({})".format(e))
|
logger.warning("UTF-8 is mandatory for sparklines ({})".format(e))
|
||||||
sparklines_module = False
|
sparklines_module = False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user