Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdeenSky committed Apr 4, 2024
1 parent f5c4c58 commit 1cbff21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/scripts/claim_credits.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def claim_daily_credits(email: str, password: str) -> None:
time.sleep(2)

try:
# Check if the credits have already been claimed
claim_btn = browser.find_element(
By.XPATH, "//button[contains(span/text(), 'Claimed')]")
logging.info("Credits - Already claimed.")
return
except:

# try finding claimed text instead
# If not claimed then find the claim button
try:
claim_btn = browser.find_element(
By.XPATH, "//button[contains(span/text(), 'Claim')]")
Expand Down

0 comments on commit 1cbff21

Please sign in to comment.