From 02ab39208bd6855f60f0534723f3eb3c76f724d2 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Wed, 22 Aug 2018 21:23:25 +0200 Subject: [PATCH] remove unused exception binding in sandbox.py pyflakes 2.0 is more strict and found that 'e' is never used. References: https://build.opensuse.org/request/show/629206 (comment section) PR: https://gitlab.com/apparmor/apparmor/merge_requests/178 (cherry picked from commit 51482c33f54f6abf5f3be8d594a5a54d82a2af79) Signed-off-by: John Johansen --- utils/apparmor/sandbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/apparmor/sandbox.py b/utils/apparmor/sandbox.py index 51048f6ff..17e413ea8 100644 --- a/utils/apparmor/sandbox.py +++ b/utils/apparmor/sandbox.py @@ -718,7 +718,7 @@ def run_xsandbox(command, opt): # aa-exec try: rc, report = aa_exec(command, opt, x.new_environ, required_rules) - except Exception as e: + except Exception: x.cleanup() raise x.cleanup()