summaryrefslogtreecommitdiff
path: root/yaksh/xmlrpc_clients.py
diff options
context:
space:
mode:
Diffstat (limited to 'yaksh/xmlrpc_clients.py')
-rw-r--r--yaksh/xmlrpc_clients.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/xmlrpc_clients.py b/yaksh/xmlrpc_clients.py
index 4da70dd..ff0a2a7 100644
--- a/yaksh/xmlrpc_clients.py
+++ b/yaksh/xmlrpc_clients.py
@@ -62,7 +62,9 @@ class CodeServerProxy(object):
server = self._get_server()
result = server.check_code(language, test_case_type, json_data, user_dir)
except ConnectionError:
- result = json.dumps({'success': False, 'error': 'Unable to connect to any code servers!'})
+ result = json.dumps({'success': False,
+ 'marks': 0.0,
+ 'error': 'Unable to connect to any code servers!'})
return result
def _get_server(self):