[cli] Fix `single_call` error report

pull/2/head
Daniel Van Der Maden 5 years ago
parent 75b52240b5
commit f086e4cb30
  1. 2
      pyhmy/cli.py

@ -285,7 +285,7 @@ def single_call(command, timeout=60, error_ok=False):
if not error_ok:
raise RuntimeError(f"Bad CLI args: `{command}`\n "
f"\tException: {err}") from err
if err == subprocess.CalledProcessError:
if isinstance(err, subprocess.CalledProcessError):
return err.output.decode()

Loading…
Cancel
Save