From eec20ee1098e4f28231ef9235a46fd95ea383dae Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 19 Dec 2018 21:24:39 +0100 Subject: [PATCH] Missed cast to str upon pidfile write --- platypush/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/__init__.py b/platypush/__init__.py index a3993b8489..26a49f89d6 100644 --- a/platypush/__init__.py +++ b/platypush/__init__.py @@ -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()