diff --git a/run_server.py b/run_server.py index 326cb7f1d..92f28e421 100755 --- a/run_server.py +++ b/run_server.py @@ -101,7 +101,7 @@ class EventHandler(ProcessEvent): self.client = client def process_IN_MODIFY(self, event): - self.client.write_message(f.read()) + self.client.write_message(f.read().decode('utf-8', 'replace')) def file_monitor(path='.', client=None):