Fix format string error for exceptions

This commit is contained in:
Sven Velt 2022-01-25 15:30:27 +01:00
parent f0a969d40f
commit ba1cff4d61

View file

@ -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)