Skip to content

Commit

Permalink
Fixed issue with title updating on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
johannlejeune committed Aug 10, 2016
1 parent 8fb7a89 commit d99ecc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/update_live_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _update_title(self, title, platform):
stdout.write("\033]0;{}\007".format(title))
stdout.flush()
elif platform == "win32":
ctypes.windll.kernel32.SetConsoleTitleA(title)
ctypes.windll.kernel32.SetConsoleTitleA(title.encode())
else:
raise RuntimeError("unsupported platform '{}'".format(platform))
self._compute_next_update()
Expand Down

0 comments on commit d99ecc4

Please sign in to comment.