Skip to content

Commit

Permalink
refactor: improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dy0gu authored Oct 26, 2024
1 parent 9a023a8 commit c32c345
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logic/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ def readTable(self) -> tuple[list[Dict[str, str]], list[str]]:
elif self.tablePath.endswith(".xlsx"):
table = pd.read_excel(self.tablePath, index_col=False)
else:
self.output("Table data file type extension not supported", "ERROR")
raise ValueError("Unsupported file format")
raise ValueError("Unsupported file extension")

records = table.to_dict("records")
headers = list(table.columns)
Expand Down

0 comments on commit c32c345

Please sign in to comment.