mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: possible fix for #7
This commit is contained in:
@@ -72,10 +72,10 @@ def run_process_checkret(args, check=True):
|
|||||||
# handle output
|
# handle output
|
||||||
stdout_s = ""
|
stdout_s = ""
|
||||||
if ret.stdout != None:
|
if ret.stdout != None:
|
||||||
stdout_s = ret.stdout.decode('utf-8')
|
stdout_s = ret.stdout.decode('utf-8', errors='replace')
|
||||||
stderr_s = ""
|
stderr_s = ""
|
||||||
if ret.stderr != None:
|
if ret.stderr != None:
|
||||||
stderr_s = ret.stderr.decode('utf-8')
|
stderr_s = ret.stderr.decode('utf-8', errors='replace')
|
||||||
|
|
||||||
# log it
|
# log it
|
||||||
observer.add_cmd_output(">>> {}\n".format(" ".join(args)))
|
observer.add_cmd_output(">>> {}\n".format(" ".join(args)))
|
||||||
|
|||||||
Reference in New Issue
Block a user