From bca6635bb57fb882ef8cd65474240344247b2302 Mon Sep 17 00:00:00 2001 From: T145 Date: Sun, 18 Feb 2024 10:05:16 -0500 Subject: [PATCH] Prize checks are under another try/except anyway --- tools/update-prizes-list.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/update-prizes-list.py b/tools/update-prizes-list.py index ebec95b..98ed363 100644 --- a/tools/update-prizes-list.py +++ b/tools/update-prizes-list.py @@ -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' } @@ -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)