mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
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 51482c33f5
)
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
committed by
John Johansen
parent
c003bff551
commit
cddd93a3fa
@@ -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()
|
||||
|
Reference in New Issue
Block a user