Commit 96271653 authored by Vladimír Štill's avatar Vladimír Štill
Browse files

fja_checker: Put more details about exceptions into log

parent c99829ee
Pipeline #76008 passed with stage
in 51 seconds
......@@ -4,6 +4,7 @@ from lib.parsing.parser import Parser, ParsingError
from lib.checker import get_task, dfa_transform, nfa_transform, check_task, check_empty, check_alphabets, exit_correct, exit_incorrect
import sys
import signal
import traceback
def print_extra_word_ce(student_word):
......@@ -20,6 +21,7 @@ def dfa_task(teacher_type, teacher_string, task, student_string):
teacher_solution = dfa_transform(teacher_string, teacher_type)
except ParsingError as ex:
print("Nastala chyba při parsování:", ex)
task_solved = ""
......@@ -156,6 +158,7 @@ def main():
except Exception as ex:
print("Error inside of fja_checker:", ex.args)
if __name__ == "__main__":
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment