Skip to content

Commit 4e1d727

Browse files
#771 fixing up unicodeError handling on windows
1 parent 0746019 commit 4e1d727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SoftLayer/CLI/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def fout(self, output, newline=True):
5959
self.out(self.fmt(output), newline=newline)
6060
except UnicodeEncodeError:
6161
# If we hit an undecodeable entry, just try outputting as json.
62+
self.out("UnicodeEncodeError detected, printing as JSON.")
6263
self.out(self.fmt(output, 'json'), newline=newline)
6364

6465
def input(self, prompt, default=None, show_default=True):

0 commit comments

Comments
 (0)