Missed cast to str upon pidfile write

This commit is contained in:
Fabio Manganiello 2018-12-19 21:24:39 +01:00
parent fb75dc323e
commit eec20ee109

View file

@ -65,7 +65,7 @@ class Daemon:
if pidfile:
self.pidfile = pidfile
with open(self.pidfile, 'w') as f:
f.write(os.getpid())
f.write(str(os.getpid()))
self.config_file = config_file
self.event_processor = EventProcessor()