From da6e0de59327a4988406337cd84513749030e46d Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 22:58:54 +0200 Subject: [PATCH] try smth --- files/routes/static.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 99000a27a..8e723c9f4 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -444,11 +444,8 @@ if SITE == 'watchpeopledie.tv': def geoblock(): ip = request.headers.get("X-Forwarded-For") - try: - country = handler.getDetails(ip).country - if country == 'AU': - abort(403, "This video is blocked in Australia.") - except Exception as e: - print(e, flush=True) + country = handler.getDetails(ip).country + if country == 'AU': + abort(403, "This video is blocked in Australia.") return send_file('/videos/1706708037797343.mp4')