Skip to content

Commit ac6319a

Browse files
committed
feat(inout): remove duplicate error print
Fixes #143
1 parent 064de65 commit ac6319a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

omv/common/inout.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,9 @@ def check_output(cmds, cwd=".", shell=False, verbosity=0, env=None):
120120
return ret_string
121121

122122
except sp.CalledProcessError as err:
123-
inform(
124-
"CalledProcessError running commands: %s in %s (return code: %s), output:\n%s"
125-
% (cmds, cwd, err.returncode, err.output),
126-
indent=2,
127-
verbosity=verbosity,
128-
)
129123
inform("Error: %s" % (err), indent=2, verbosity=verbosity)
130124
raise err
131125
except Exception as err:
132-
inform(
133-
"Error running commands: %s in (%s)!" % (cmds, cwd),
134-
indent=2,
135-
verbosity=verbosity,
136-
)
137126
inform("Error: %s" % (err), indent=2, verbosity=verbosity)
138127
raise err
139128

0 commit comments

Comments
 (0)