mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
use args as well.
This commit is contained in:
parent
e12f520cea
commit
d218ba54c6
@ -77,10 +77,10 @@ class Pidfile(object):
|
||||
os.kill(wpid, 0)
|
||||
return wpid
|
||||
except OSError as e:
|
||||
if e[0] == errno.ESRCH:
|
||||
if e.args[0] == errno.ESRCH:
|
||||
return
|
||||
raise
|
||||
except IOError as e:
|
||||
if e[0] == errno.ENOENT:
|
||||
if e.args[0] == errno.ENOENT:
|
||||
return
|
||||
raise
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user