Skip to content

Commit

Permalink
Setlocale does not work like that on Windows, so attempt to set it bu…
Browse files Browse the repository at this point in the history
…t do nothing if it fails
  • Loading branch information
kliment committed Mar 5, 2018
1 parent 4837342 commit bf53af9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion printrun/printcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
from collections import deque
from printrun import gcoder
from .utils import set_utf8_locale, install_locale, decode_utf8
set_utf8_locale()
try:
set_utf8_locale()
except:
pass
install_locale('pronterface')
from printrun.plugins import PRINTCORE_HANDLER

Expand Down

0 comments on commit bf53af9

Please sign in to comment.