From ba1cff4d61c66d9c3090f45a982cd66966e60713 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Tue, 25 Jan 2022 15:30:27 +0100 Subject: [PATCH] Fix format string error for exceptions --- ssh-wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-wrapper.py b/ssh-wrapper.py index dd9c688..e911629 100755 --- a/ssh-wrapper.py +++ b/ssh-wrapper.py @@ -64,7 +64,7 @@ for maybe in allowed: try: cmd = subprocess.Popen(cmdlinelist, stdout=subprocess.PIPE) except Exception as exc: - print('Could not execute plugin ("%s"): %s' % cmdline) + print('Could not execute plugin: %s' % exc) if args.verbose >= 0: syslog.syslog('Could not execute plugin >%s<' % cmdline) sys.exit(3)