apparmor/make-pyflakes-happy.diff
2018-08-22 11:38:18 +00:00

14 lines
419 B
Diff

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