Commit b9ce3cfe authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[scripts][worker] Fix key search in dictionaries

parent 8fee25e1
......@@ -302,7 +302,7 @@ def main(user_input=None):
execution_process.join()
if result.has_key('result'):
if 'result' in result:
content = simplejson.dumps(result['result'])
status = WorkerController.DONE
......@@ -317,7 +317,7 @@ def main(user_input=None):
execution_process.job_id,
content
]
elif result.has_key('error'):
elif 'error' in result:
logger.error(result['error'])
message = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment