Skip to content

Commit 77913ee

Browse files
committed
FIX: Get OSError.errno by name, not index
1 parent 15d25b3 commit 77913ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/utils/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def _process(drain=0):
124124
res = select.select(streams, [], [], timeout)
125125
except select.error as e:
126126
iflogger.info(e)
127-
if e[0] == errno.EINTR:
127+
if e.errno == errno.EINTR:
128128
return
129129
else:
130130
raise

0 commit comments

Comments
 (0)