Skip to content

Commit

Permalink
Fix #866 - Ignore ValueError in Pidfile.validate
Browse files Browse the repository at this point in the history
  • Loading branch information
k4nar committed Jun 14, 2016
1 parent d004e0e commit 83b2c8a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion circus/pidfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def validate(self):
return
try:
with open(self.fname, "r") as f:
wpid = int(f.read() or 0)
try:
wpid = int(f.read() or 0)
except ValueError:
return

if wpid <= 0:
return
Expand Down

0 comments on commit 83b2c8a

Please sign in to comment.