Skip to content

Commit

Permalink
Suppress printing backtrace not to surprise users
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyk committed Sep 15, 2020
1 parent 54368a7 commit 0dcacf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions onlinejudge_template/analyzer/simple_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0dcacf4

Please sign in to comment.