From d305bff9bde2899e0ca8d338edec4ad2cd1ee378 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Dec 2022 17:51:34 +0000 Subject: [PATCH] Redirect warning --- session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/session.py b/session.py index 78998fe35..f71df18d3 100644 --- a/session.py +++ b/session.py @@ -109,6 +109,8 @@ def _get_json_request(session, url: str, domain_full: str, session_headers: {}, print('WARN: get_json Not Found url: ' + url) elif result.status_code == 410: print('WARN: get_json no longer available url: ' + url) + elif result.status_code == 303: + print('WARN: get_json redirect not permitted: ' + url) else: session_headers2 = session_headers.copy() if session_headers2.get('Authorization'):