Merge pull request #971 from MaxMorais/patch-1
Fix UnicodeDecodeError
diff --git a/install_erpnext.py b/install_erpnext.py
index 79f79d7..7f3b8c3 100644
--- a/install_erpnext.py
+++ b/install_erpnext.py
@@ -332,9 +332,11 @@
stdout.seek(0)
out = stdout.read()
+ if out: out = out.decode('utf-8')
stderr.seek(0)
err = stderr.read()
+ if err: err = err.decode('utf-8')
if err and any((kw in err.lower() for kw in ["traceback", "error", "exception"])):
print out
@@ -345,4 +347,4 @@
return out
if __name__ == "__main__":
- install()
\ No newline at end of file
+ install()