support success info message
This commit is contained in:
4
main.py
4
main.py
@@ -172,9 +172,9 @@ def parse_status_page(html):
|
||||
if box is None:
|
||||
raise ValueError("Statusbereich nicht gefunden (fehlendes Fieldset).")
|
||||
|
||||
warn = box.select_one(".warn p")
|
||||
warn = box.select_one(".warn p") or box.select_one(".info p")
|
||||
if warn is None:
|
||||
raise ValueError("Statusabschnitt (.warn p) nicht gefunden.")
|
||||
raise ValueError("Statusabschnitt (.warn p oder .info p) nicht gefunden.")
|
||||
|
||||
status_text = warn.get_text(strip=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user