Skip to content

Commit

Permalink
VPollerClient instances return a json.dumps() result like the Worker
Browse files Browse the repository at this point in the history
does in case of failures
  • Loading branch information
dnaeon committed Dec 3, 2014
1 parent da91d3e commit a3bbe1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vpoller/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"""

import json
import logging

import zmq


Expand Down Expand Up @@ -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

0 comments on commit a3bbe1c

Please sign in to comment.