From 51ee533fbc9010c7ce4134073fb8fe0e34698859 Mon Sep 17 00:00:00 2001 From: Lennard Geese <lennard.geese@sva.de> Date: Wed, 16 Apr 2025 16:32:21 +0200 Subject: [PATCH] Specify exception type --- DataAnalyser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataAnalyser.py b/DataAnalyser.py index e6a08f9..781a60f 100644 --- a/DataAnalyser.py +++ b/DataAnalyser.py @@ -134,7 +134,7 @@ class DataAnalyser(DataHandler): weatherRaw = 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]): """ -- GitLab