From 162bb2c59b9b3faa7a161e192c1821602d2ab326 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 7 May 2015 17:09:28 +0200 Subject: Improve error & warning reporting Hope it does not break anything. --- monkey/monkey.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'monkey') diff --git a/monkey/monkey.py b/monkey/monkey.py index 61ff573..99f5a2a 100755 --- a/monkey/monkey.py +++ b/monkey/monkey.py @@ -11,9 +11,8 @@ from .util import PQueue # Check whether all tests for problem [name] succeed. def test(name, code): try: - reply = prolog.engine.create( - code=code, - query='run_tests({})'.format(name)) + reply, output = prolog.engine.create( + code=code, query='run_tests({})'.format(name)) return reply.get('event') == 'success' except Exception as ex: return False -- cgit v1.2.1