From ec6b596348ad78c4e2c49dd5c269560ccbcc3f16 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 19 Mar 2022 15:50:33 +0200 Subject: [PATCH] f --- files/routes/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/admin.py b/files/routes/admin.py index 94a48b960..3fc251692 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -32,7 +32,8 @@ def fix(v): if num: li = li[:int(num)] for post in li: print(post.id, flush=True) - req = requests.get(f"https://web.archive.org/{post.url}", timeout=5) + try: req = requests.get(f"https://web.archive.org/{post.url}", timeout=5) + except: continue if str(req) == '': print(post.url, flush=True) post.url = req.url.replace('/https://i.ibb.co/','if_/https://i.ibb.co/')