Commit 351591fb by Brian Coca

Merge pull request #10802 from pahaz/patch-2

Python 3 compatible `except` statment
parents db3eaef8 bc47fe6f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment