From 66ae415ba019fa4528f61a23948e56a713902295 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 17 Feb 2016 15:44:40 +0100 Subject: Prolog: only catch timeout in test functions --- prolog/problems/lists/min_2/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prolog/problems/lists/min_2') diff --git a/prolog/problems/lists/min_2/common.py b/prolog/problems/lists/min_2/common.py index a26a14d..39ffe89 100644 --- a/prolog/problems/lists/min_2/common.py +++ b/prolog/problems/lists/min_2/common.py @@ -39,7 +39,7 @@ def test(code, aux_code): for query, answers in test_cases: if prolog.engine.check_answers(engine_id, query=query, answers=answers, timeout=1.0): n_correct += 1 - except: + except socket.timeout: pass finally: if engine_id: -- cgit v1.2.1