mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
fix getattr issue
This commit is contained in:
parent
edadbcab64
commit
caa4b89954
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ else:
|
|||
os.tcsetpgrp(FD_STDERR, pgid)
|
||||
return True
|
||||
except OSError as e:
|
||||
if getattr(e, 'errno') == 22: # [Errno 22] Invalid argument
|
||||
if e.errno == 22: # [Errno 22] Invalid argument
|
||||
# there are cases that all the processes of pgid have
|
||||
# finished, then we don't need to do anything here, see
|
||||
# issue #2220
|
||||
|
|
Loading…
Add table
Reference in a new issue