http/client: handle 403 as unauthorized
1 files changed, 1 insertions(+), 1 deletions(-) M tshistory/http/client.py
M tshistory/http/client.py +1 -1
@@ 53,7 53,7 @@ def unwraperror(func): raise Exception('404 - please check your base uri') if res.status_code == 400: raise Exception(f'Bad Query: {res.text}') - if res.status_code == 401: + if res.status_code in (401, 403): raise Exception('401 - Unauthorized. Check your tshistory.cfg file') if res.status_code >= 500: raise Exception('The server could not process your query.')