From 0dcacf4697596c72bb0c2f1c90036622fb6c04bd Mon Sep 17 00:00:00 2001 From: Kimiyuki Onaka Date: Wed, 16 Sep 2020 00:30:57 +0900 Subject: [PATCH] Suppress printing backtrace not to surprise users --- onlinejudge_template/analyzer/simple_patterns.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onlinejudge_template/analyzer/simple_patterns.py b/onlinejudge_template/analyzer/simple_patterns.py index f3167f0..6fd8ad3 100644 --- a/onlinejudge_template/analyzer/simple_patterns.py +++ b/onlinejudge_template/analyzer/simple_patterns.py @@ -353,8 +353,7 @@ def guess_output_format_with_pattern_matching_using_input_format(*, instances: L values = {name: input_values[name]} # hide variables other than the `name` match_format(pattern, data.output.decode(), variables=variables, values=values) except FormatMatchError as e: - logger.exception(e) - pass + logger.error(e) else: logger.debug('simple output pattern found with input variables: %s', pattern) found.append(pattern)