From 6b04686a6bad6c0e789c260568e8c86a28de664d Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 22:42:18 +0200 Subject: [PATCH] AAAAAAAAAAAAA --- files/routes/static.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index b6e7c20b4..e91603ee1 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -440,7 +440,10 @@ if SITE == 'watchpeopledie.tv': def geoblock(): ip = request.headers.get("X-Forwarded-For") req = requests.get(f'http://ipinfo.io/{ip}/json') - country = json.loads(req.text)['country'] - if country == 'AU': - abort(403, "This video is blocked in Australia.") + try: + country = json.loads(req.text)['country'] + if country == 'AU': + abort(403, "This video is blocked in Australia.") + except: + print(req.text, flush=True) return send_file('/videos/1706708037797343.mp4')