Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Improve error message informativeness & readability
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek committed Jul 22, 2024
1 parent 062240f commit 5ba99f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Evaluation/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def calc_similarity(self, gold_instance: dict, sys_list: list) -> list[float]:
r = self.comp.sequence(gold_instance[k], si[k])
try:
scores.append(1 - r)
except Exception as err:
self.logger.warning(f"Unsupported column name: {k}. Error message: {err}")
except Exception:
self.logger.warning(f"Unsupported column name: {k} will be ignored during matching.")

score_list.append(mean(scores))

Expand Down

0 comments on commit 5ba99f2

Please sign in to comment.