better error msg

pull/225/head
Aevann 2024-03-17 06:44:19 +02:00
parent 6fc88e5803
commit 4905ccdb52
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def get_logged_in_user():
g.username = v.username
if not v and SITE == 'rdrama.net' and request.headers.get("Cf-Ipcountry") == 'EG':
abort(404)
abort(403, "rdrama.net is only available to visitors from the United States!")
g.is_api_or_xhr = bool((v and v.client) or request.headers.get("xhr"))