diff --git a/lib/ansible/callbacks.py b/lib/ansible/callbacks.py index 0e0fa44128..3422336f85 100644 --- a/lib/ansible/callbacks.py +++ b/lib/ansible/callbacks.py @@ -88,7 +88,7 @@ def log_flock(runner): if runner is not None: try: fcntl.lockf(runner.output_lockfile, fcntl.LOCK_EX) - except OSError, e: + except OSError: # already got closed? pass @@ -97,7 +97,7 @@ def log_unflock(runner): if runner is not None: try: fcntl.lockf(runner.output_lockfile, fcntl.LOCK_UN) - except OSError, e: + except OSError: # already got closed? pass