1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Python 3 compatible except statment

This commit is contained in:
Pahaz Blinov 2015-04-21 19:13:11 +05:00
parent db3eaef833
commit bc47fe6f82

View file

@ -92,7 +92,7 @@ class TaskQueueManager:
if fileno is not None:
try:
new_stdin = os.fdopen(os.dup(fileno))
except OSError, e:
except OSError:
# couldn't dupe stdin, most likely because it's
# not a valid file descriptor, so we just rely on
# using the one that was passed in