Redirect warning

main
Bob Mottram 2022-12-30 17:51:34 +00:00
parent 302e685a35
commit d305bff9bd
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ def _get_json_request(session, url: str, domain_full: str, session_headers: {},
print('WARN: get_json Not Found url: ' + url) print('WARN: get_json Not Found url: ' + url)
elif result.status_code == 410: elif result.status_code == 410:
print('WARN: get_json no longer available url: ' + url) print('WARN: get_json no longer available url: ' + url)
elif result.status_code == 303:
print('WARN: get_json redirect not permitted: ' + url)
else: else:
session_headers2 = session_headers.copy() session_headers2 = session_headers.copy()
if session_headers2.get('Authorization'): if session_headers2.get('Authorization'):