[56] #834 Fix latin encoding error

pull/858/head
meisnate12 3 years ago
parent 0995faf39e
commit 82f6cad5f7

@ -1 +1 @@
1.16.5-develop55
1.16.5-develop56

@ -198,7 +198,12 @@ class MyLogger:
def ghost(self, text):
if not self.ignore_ghost:
print(self._space(f"| {text}"), end="\r")
try:
final_text = f"| {text}"
except UnicodeEncodeError:
text = text.encode("utf-8")
final_text = f"| {text}"
print(self._space(final_text), end="\r")
self.spacing = len(text) + 2
def exorcise(self):

Loading…
Cancel
Save