mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 14:41:23 -07: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:
parent
8508e48c67
commit
dbf7df4439
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class WorkerProcess(multiprocessing.Process):
|
||||||
# not a valid file descriptor, so we just rely on
|
# not a valid file descriptor, so we just rely on
|
||||||
# using the one that was passed in
|
# using the one that was passed in
|
||||||
pass
|
pass
|
||||||
except ValueError:
|
except AttributeError, ValueError:
|
||||||
# couldn't get stdin's fileno, so we just carry on
|
# couldn't get stdin's fileno, so we just carry on
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue