Skip to content

Commit

Permalink
Prize checks are under another try/except anyway
Browse files Browse the repository at this point in the history
  • Loading branch information
T145 committed Feb 18, 2024
1 parent 6f6bb91 commit bca6635
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tools/update-prizes-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def list_new_domains():
return domains
return list()

def _limited_is_prize_domain(domain):
def is_prize_domain(domain):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0'
}
Expand All @@ -40,12 +40,6 @@ def _limited_is_prize_domain(domain):

return 'under construction' in resp.lower() or 'redirDomain' in resp

def is_prize_domain(domain):
try:
return _limited_is_prize_domain(domain)
except:
return False

if __name__ == '__main__':
with open(os.path.join(os.getcwd(), 'filters', 'prizes.yml')) as f:
saved_data = yaml.safe_load(f)
Expand Down

0 comments on commit bca6635

Please sign in to comment.