Python 3 compatible `except` statment

pull/10802/head
Pahaz Blinov 11 years ago
parent db3eaef833
commit bc47fe6f82

@ -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

Loading…
Cancel
Save