From a6eaec2e5f5ef3836919d4ce70303cf94899f83c Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 21 Sep 2018 07:05:13 -0700 Subject: [PATCH] VarietyWindow: fix pencil_tile.png generation shlex.quote() only works on str, not bytes --- variety/VarietyWindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variety/VarietyWindow.py b/variety/VarietyWindow.py index 4480c175..f3d0e28b 100644 --- a/variety/VarietyWindow.py +++ b/variety/VarietyWindow.py @@ -299,7 +299,7 @@ def _generate_pencil_tile(): try: os.system( "convert -size 1000x1000 xc: +noise Random -virtual-pixel tile " - "-motion-blur 0x20+135 -charcoal 2 -resize 50%% %s" % pipes.quote(pencil_tile_filename.encode('utf8'))) + "-motion-blur 0x20+135 -charcoal 2 -resize 50%% %s" % pipes.quote(pencil_tile_filename)) except Exception: logger.exception(lambda: "Could not generate pencil_tile.png") threading.Timer(0, _generate_pencil_tile).start()