fix(bin/linja): decode communicated result if not None
This commit is contained in:
parent
a46abbb9ce
commit
69f3f65ec9
1 changed files with 2 additions and 2 deletions
|
@ -514,9 +514,9 @@ def call_ninja(args):
|
||||||
ninja_option += ["-k", args.keep_going]
|
ninja_option += ["-k", args.keep_going]
|
||||||
proc = subprocess.Popen([g_ninja_path] + ninja_option + targets, stdout=proc_out, stderr=proc_err)
|
proc = subprocess.Popen([g_ninja_path] + ninja_option + targets, stdout=proc_out, stderr=proc_err)
|
||||||
(out, err) = proc.communicate()
|
(out, err) = proc.communicate()
|
||||||
if out:
|
if out is not None:
|
||||||
out = out.decode('utf-8')
|
out = out.decode('utf-8')
|
||||||
if err:
|
if err is not None:
|
||||||
err = err.decode('utf-8')
|
err = err.decode('utf-8')
|
||||||
if args.flycheck:
|
if args.flycheck:
|
||||||
if len(args.targets) == 1 and (args.targets[0].endswith(".lean") or args.targets[0].endswith(".hlean")):
|
if len(args.targets) == 1 and (args.targets[0].endswith(".lean") or args.targets[0].endswith(".hlean")):
|
||||||
|
|
Loading…
Reference in a new issue