except bs4.builder.ParserRejectedMarkup:
logger.warning("domain='%s' has returned invalid HTML markup", domain)
- logger.debug("tag[%s]='%s'", type(tag), tag)
+ logger.debug("tag[]='%s'", type(tag))
if tag is None:
logger.debug("domain='%s' does not have CSRF token", domain)
elif "content" in tag:
logger.debug("Adding CSRF token='%s' for domain='%s'", tag["data-token"], domain)
reqheaders["X-CSRF-Token"] = tag["data-token"]
else:
- logger.warning("domain='%s' has unknown CSRF token: tag(%d)='%s'", domain, len(tag), tag)
+ logger.warning("domain='%s' has unknown CSRF token: tag()=%d", domain, len(tag))
elif not validators.url(response_url):
logger.warning("response_url='%s' is not valid - Raising exception ...", response_url)