Browse Source

Use subprocess.check_output so output will be logged

Currently results in a traceback when the command fails.

Ideally we should actually log stderr, since in most apps
that's where the errors go when something goes wrong.
main
Idan Kamara 13 years ago
parent
commit
73365e2a43
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/plugin.py

+ 1
- 1
hyde/plugin.py View File

@@ -389,7 +389,7 @@ class CLTransformer(Plugin):
self.logger.debug(
"Calling executable [%s] with arguments %s" %
(args[0], unicode(args[1:])))
subprocess.check_call(args)
subprocess.check_output(args)
except subprocess.CalledProcessError, error:
self.logger.error(traceback.format_exc())
self.logger.error(error.output)


Loading…
Cancel
Save