diff --git a/src/vpoller/client.py b/src/vpoller/client.py index 393a0ba..612a562 100644 --- a/src/vpoller/client.py +++ b/src/vpoller/client.py @@ -27,7 +27,9 @@ """ +import json import logging + import zmq @@ -129,9 +131,10 @@ def run(self, msg): logging.error( 'Did not receive response, aborting...' ) - return { + r = { 'success': 1, 'msg': 'Did not receive response, aborting...' } + return json.dumps(r, ensure_ascii=False) return result