Skip to content

Commit

Permalink
Merge pull request #1042 from brijeshb42/master
Browse files Browse the repository at this point in the history
Updated gunicorn/pidfile.py
  • Loading branch information
tilgovi committed Jul 9, 2015
2 parents 27df133 + db786ce commit d971eb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gunicorn/pidfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def validate(self):
return
try:
with open(self.fname, "r") as f:
wpid = int(f.read() or 0)

if wpid <= 0:
try:
wpid = int(f.read())
except ValueError:
return

try:
Expand Down

0 comments on commit d971eb4

Please sign in to comment.