fix pycharm debugger issue on missing fileno

Under pycharm debugger, stdin has no fileno, but throws AttributeError instead of ValueError. Account for both.
pull/16905/merge
nitzmahone 8 years ago
parent 8508e48c67
commit dbf7df4439

@ -89,7 +89,7 @@ class WorkerProcess(multiprocessing.Process):
# not a valid file descriptor, so we just rely on
# using the one that was passed in
pass
except ValueError:
except AttributeError, ValueError:
# couldn't get stdin's fileno, so we just carry on
pass

Loading…
Cancel
Save