Fix format string error for exceptions
This commit is contained in:
parent
f0a969d40f
commit
ba1cff4d61
|
@ -64,7 +64,7 @@ for maybe in allowed:
|
||||||
try:
|
try:
|
||||||
cmd = subprocess.Popen(cmdlinelist, stdout=subprocess.PIPE)
|
cmd = subprocess.Popen(cmdlinelist, stdout=subprocess.PIPE)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print('Could not execute plugin ("%s"): %s' % cmdline)
|
print('Could not execute plugin: %s' % exc)
|
||||||
if args.verbose >= 0:
|
if args.verbose >= 0:
|
||||||
syslog.syslog('Could not execute plugin >%s<' % cmdline)
|
syslog.syslog('Could not execute plugin >%s<' % cmdline)
|
||||||
sys.exit(3)
|
sys.exit(3)
|
||||||
|
|
Loading…
Reference in a new issue