Skip to content

Commit 5354abd

Browse files
committed
umweltverbaende_at improve error message for GVA Baden if missing calendar
1 parent ae44a02 commit 5354abd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

custom_components/waste_collection_schedule/waste_collection_schedule/source/umweltverbaende_at.py

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from bs4 import BeautifulSoup
77
from waste_collection_schedule import Collection # type: ignore[attr-defined]
88
from waste_collection_schedule.exceptions import (
9+
SourceArgumentException,
910
SourceArgumentNotFoundWithSuggestions,
1011
SourceArgumentRequiredWithSuggestions,
1112
)
@@ -705,6 +706,8 @@ def fetch_new(self) -> list[Collection]:
705706
):
706707
try:
707708
return self._fetch_new_from_list(soup)
709+
except SourceArgumentException as e:
710+
raise e
708711
except Exception:
709712
raise Exception(
710713
f"Could not find nonce for page {self._district_url}fuer-die-bevoelkerung/abholtermine/"

0 commit comments

Comments
 (0)