From d3dd46c458500c7adb020d0338dacd55655137c7 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 18 Nov 2015 12:42:09 +0100 Subject: Do not handle engine errors in hint functions Such errors are now handled in server.prolog_session. --- prolog/problems/family_relations/descendant_2/common.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'prolog/problems/family_relations/descendant_2') diff --git a/prolog/problems/family_relations/descendant_2/common.py b/prolog/problems/family_relations/descendant_2/common.py index 44eb605..0963994 100644 --- a/prolog/problems/family_relations/descendant_2/common.py +++ b/prolog/problems/family_relations/descendant_2/common.py @@ -71,11 +71,8 @@ def hint(program, solved_problems): server.problems.solutions_for_problems('prolog', solved_problems) + '\n' + server.problems.load_facts('prolog', facts).facts) - engine_id = None try: engine_id, output = prolog.engine.create(code=code, timeout=1.0) - if not engine_id: - raise Exception('Prolog engine failed to create.') # gender testing is redundant # this is not necessarily wrong, but worth mentioning anyway -- cgit v1.2.1