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

fix pycharm debugger issue on missing fileno

Under pycharm debugger, stdin has no fileno, but throws AttributeError instead of ValueError. Account for both.
This commit is contained in:
nitzmahone 2016-08-23 17:00:14 -07:00
parent 8508e48c67
commit dbf7df4439

View file

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