Missed cast to str upon pidfile write
This commit is contained in:
parent
fb75dc323e
commit
eec20ee109
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Daemon:
|
||||||
if pidfile:
|
if pidfile:
|
||||||
self.pidfile = pidfile
|
self.pidfile = pidfile
|
||||||
with open(self.pidfile, 'w') as f:
|
with open(self.pidfile, 'w') as f:
|
||||||
f.write(os.getpid())
|
f.write(str(os.getpid()))
|
||||||
|
|
||||||
self.config_file = config_file
|
self.config_file = config_file
|
||||||
self.event_processor = EventProcessor()
|
self.event_processor = EventProcessor()
|
||||||
|
|
Loading…
Reference in a new issue