From c07cf6891f5838f1c73a0eaac210d4b14e2a0a83 Mon Sep 17 00:00:00 2001 From: Michel Albert Date: Thu, 26 Apr 2012 10:50:04 +0200 Subject: [PATCH] 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. --- tools/pypmmn/pypmmn/pypmmn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pypmmn/pypmmn/pypmmn.py b/tools/pypmmn/pypmmn/pypmmn.py index 4d38dc5e..08cf51a6 100644 --- a/tools/pypmmn/pypmmn/pypmmn.py +++ b/tools/pypmmn/pypmmn/pypmmn.py @@ -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)