mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Python 3 compatible except statment
This commit is contained in:
@@ -92,7 +92,7 @@ class TaskQueueManager:
|
|||||||
if fileno is not None:
|
if fileno is not None:
|
||||||
try:
|
try:
|
||||||
new_stdin = os.fdopen(os.dup(fileno))
|
new_stdin = os.fdopen(os.dup(fileno))
|
||||||
except OSError, e:
|
except OSError:
|
||||||
# couldn't dupe stdin, most likely because it's
|
# couldn't dupe stdin, most likely because it's
|
||||||
# not a valid file descriptor, so we just rely on
|
# not a valid file descriptor, so we just rely on
|
||||||
# using the one that was passed in
|
# using the one that was passed in
|
||||||
|
|||||||
Reference in New Issue
Block a user