diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-17 15:44:40 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-17 15:44:40 +0100 |
commit | 66ae415ba019fa4528f61a23948e56a713902295 (patch) | |
tree | 3b626d214d3d85c6341f1fa2668a153e568fd66f /prolog/problems/lists/count_3 | |
parent | 138610b0709d6e251c16b391242023eec393d775 (diff) |
Prolog: only catch timeout in test functions
Diffstat (limited to 'prolog/problems/lists/count_3')
-rw-r--r-- | prolog/problems/lists/count_3/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/problems/lists/count_3/common.py b/prolog/problems/lists/count_3/common.py index 25474b6..0f4f171 100644 --- a/prolog/problems/lists/count_3/common.py +++ b/prolog/problems/lists/count_3/common.py @@ -40,7 +40,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: |