ignore archiveorg errors

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-03 16:24:16 +02:00
parent 6c59e83512
commit 284dfbc30e
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ def badge_grant(user, badge_id, description=None, url=None):
def archiveorg(url):
x = requests.get(f'https://web.archive.org/save/{url}', headers={'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}, timeout=100)
try: requests.get(f'https://web.archive.org/save/{url}', headers={'User-Agent': 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'}, timeout=100)
except: pass
def archive_url(url):
if url.startswith(SITE_FULL): return