Quicklook plugin not working on Systemd #1537

This commit is contained in:
nicolargo 2019-09-28 15:30:38 +02:00
parent faa4bd715d
commit 66c9fff716

View File

@ -36,7 +36,7 @@ except ImportError as e:
try:
'┌┬┐╔╦╗╒╤╕╓╥╖│║─═├┼┤╠╬╣╞╪╡╟╫╢└┴┘╚╩╝╘╧╛╙╨╜'.encode(sys.stdout.encoding)
except UnicodeEncodeError:
except (UnicodeEncodeError, TypeError):
logger.warning("UTF-8 is mandatory for sparklines ({})".format(e))
sparklines_module = False