Compare commits

..

2 Commits

Author SHA1 Message Date
I-Al-Istannen
f0e56a8e12 Dump html after login failure 2025-05-09 11:37:34 +02:00
PinieP
8caad0008d Fix check for nonexistent ilias_url command attribute to base_url (#113) 2025-05-05 22:05:54 +02:00
2 changed files with 4 additions and 2 deletions

View File

@@ -45,8 +45,8 @@ def load(
load_crawler(args, section)
section["type"] = COMMAND_NAME
if args.ilias_url is not None:
section["base_url"] = args.ilias_url
if args.base_url is not None:
section["base_url"] = args.base_url
if args.client_id is not None:
section["client_id"] = args.client_id

View File

@@ -983,6 +983,8 @@ instance's greatest bottleneck.
soup = IliasSoup(soupify(await request.read()), str(request.url))
if IliasPage.is_logged_in(soup):
return self._verify_page(soup, url, root_page_allowed)
with open("/tmp/ilias_debug.html", "w") as f:
f.write(str(soup.soup.prettify()))
raise CrawlError(f"get_page failed even after authenticating on {url!r}")
@staticmethod