Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Use retries variable
Browse files Browse the repository at this point in the history
Use the retries variable instead of hard coding the number 4.
  • Loading branch information
omarali committed Oct 11, 2022
1 parent eb437ba commit f335cc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EsportsCapsuleFarmer/Rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def checkRewards(self, url, retries=5):
self.log.info(f"{match} is eligible for rewards ✓")
break
else:
if i < 4:
if i < retries - 1:
self.log.warning(f"{match} is not eligible for rewards. Retrying...")
self.driver.refresh()
else:
Expand Down

0 comments on commit f335cc1

Please sign in to comment.