Removed or 0

Removed `or 0` to raise `ValueError` for empty pidfile or pidfile with invalid contents.
This commit is contained in:
Brijesh Bittu 2015-07-09 11:44:14 +05:30
parent 68a944088e
commit db786ce90e

View File

@ -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