Skip to content

Commit

Permalink
fix: Stupid Amazon Day
Browse files Browse the repository at this point in the history
  • Loading branch information
srhinos committed Jun 27, 2022
1 parent 47be8c2 commit 839e492
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions primelooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ def check_claim_status(offer: dict) -> bool:
raise Exception(f"Could not check offer eligibility status\n{json.dumps(offer, indent=4)}")

def claim_external(self, url, publisher):

if "loot" not in url:
log.warning(
f"Skipping URL {url}, looks to not be a game URL"
"Please report @github if this appears to be a mistake!"
)
return

tab = self.context.new_page()
try:
with tab.expect_response(
Expand Down

0 comments on commit 839e492

Please sign in to comment.