]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 1 May 2025 12:24:35 +0000 (14:24 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 1 May 2025 12:24:35 +0000 (14:24 +0200)
- include exception in message, too

fba/http/csrf.py

index f2871c9a72459f920f81cada40b25143448d2a4d..8a487dfcc7b3e4de8c1cf956e435d007b89dbefa 100644 (file)
@@ -72,8 +72,8 @@ def determine(domain: str, headers: dict) -> dict:
 
             logger.debug("meta[]='%s'", type(meta))
             tag = meta.find("meta", attrs={"name": "csrf-token"})
-        except bs4.builder.ParserRejectedMarkup:
-            logger.warning("domain='%s' has returned invalid HTML markup", domain)
+        except bs4.builder.ParserRejectedMarkup as exception:
+            logger.warning("domain='%s' has returned invalid HTML markup: exception='%s'", domain, exception)
 
         logger.debug("tag[]='%s'", type(tag))
         if tag is None: