This commit is contained in:
James Woglom
2024-09-08 15:08:34 -04:00
parent c60b19dbed
commit 9d8554bd03
+1 -1
View File
@@ -87,7 +87,7 @@ class ControlIQApi:
logger.info("BeautifulSoup parsed contents: %s" % contents)
pass
if not soup.select_one("#__VIEWSTATE"):
enc_contents = soup.encode_contents()
enc_contents = str(soup.encode_contents())
if "Web Page Blocked!" in enc_contents or "Attack ID:" in enc_contents:
logger.warn("Being ratelimited/blocked by web application firewall. Sleeping for 30 minutes before retrying.")
logger.info("BeautifulSoup parsed contents: %s" % enc_contents)