Skip to content
Snippets Groups Projects
Commit 51ee533f authored by Lennard Geese's avatar Lennard Geese
Browse files

Specify exception type

parent 9ba940a5
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ class DataAnalyser(DataHandler): ...@@ -134,7 +134,7 @@ class DataAnalyser(DataHandler):
weatherRaw = tableRow.find("td").string weatherRaw = tableRow.find("td").string
return re.sub("\n", "", tableRow.find("td").string) return re.sub("\n", "", tableRow.find("td").string)
raise Exception("No weather entry found") # TODO: Use correct exception type raise KeyError("No weather entry found")
def filterForRainSessions(self, sessions: list[Session]): def filterForRainSessions(self, sessions: list[Session]):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment