diff --git a/supervisor_stdout.py b/supervisor_stdout.py index e7b1b5a..ea70691 100644 --- a/supervisor_stdout.py +++ b/supervisor_stdout.py @@ -18,6 +18,7 @@ def main(): write_stdout('RESULT %s\n%s'%(len(data), data)) # transition from READY to ACKNOWLEDGED def event_handler(event, response): + response = response.decode() line, data = response.split('\n', 1) headers = dict([ x.split(':') for x in line.split() ]) lines = data.split('\n')