INFO - LanisClient Authenticated.
INFO - httpx HTTP Request: POST https://start.schulportal.hessen.de/vertretungsplan.php "HTTP/1.1 200 OK"
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
File /opt/conda/lib/python3.11/site-packages/lanisapi/functions/substitution.py:88, in _get_substitution_info()
87 try:
---> 88 date = re.findall(r"(\d\d\.\d\d\.\d\d\d\d)", date_element.text())[0]
89 except AttributeError as err:
AttributeError: 'NoneType' object has no attribute 'text'
...
File /opt/conda/lib/python3.11/site-packages/lanisapi/functions/substitution.py:94, in _get_substitution_info()
90 HTMLLogger.log_missing_element(
91 html.html, "get_substitution_info()", "/", "date"
92 )
93 msg = "Critical date element was not found, something is definitely wrong! Please file a bug with the html_logs.txt file."
---> 94 raise CriticalElementWasNotFoundError(msg) from err
96 LOGGER.info(f"Substitution info: Successfully got info. Notice is {bool(notice)}.")
98 return {"notice": notice, "date": date}
CriticalElementWasNotFoundError: Critical date element was not found, something is definitely wrong! Please file a bug with the html_logs.txt file.