Skip to content

Commit

Permalink
VarietyWindow: fix pencil_tile.png generation
Browse files Browse the repository at this point in the history
shlex.quote() only works on str, not bytes
  • Loading branch information
jlu5 committed Sep 21, 2018
1 parent 8eff230 commit a6eaec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variety/VarietyWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a6eaec2

Please sign in to comment.