Fix crash on plugin execution error.

If a plugin failed to execute, pypmmn did not properly report the error and
crash. This resolves this bug.
This commit is contained in:
Michel Albert 2012-04-26 10:50:04 +02:00
parent c29d25a89f
commit c07cf6891f
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class CmdHandler(object):
LOG.debug('Executing %r' % cmd)
output = Popen(cmd, stdout=PIPE).communicate()[0]
except OSError, exc:
LOG.exception()
LOG.exception("Unable to execute the command %r" % cmd)
self.put_fun("# ERROR: %s\n" % exc)
return
self.put_fun(output)