Skip to content

Commit

Permalink
to str
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Sep 8, 2024
1 parent c60b19d commit 9d8554b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tconnectsync/api/controliq.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _build_login_data(self, email, password, soup):
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)
Expand Down

0 comments on commit 9d8554b

Please sign in to comment.