diff --git a/utils/apparmor/sandbox.py b/utils/apparmor/sandbox.py index 51048f6f..17e413ea 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()