mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Removed or 0
Removed `or 0` to raise `ValueError` for empty pidfile or pidfile with invalid contents.
This commit is contained in:
parent
68a944088e
commit
db786ce90e
@ -67,7 +67,7 @@ class Pidfile(object):
|
||||
try:
|
||||
with open(self.fname, "r") as f:
|
||||
try:
|
||||
wpid = int(f.read() or 0)
|
||||
wpid = int(f.read())
|
||||
except ValueError:
|
||||
return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user