In API_util.py we check for http status code, the return statements for any thing not code 200 needs to be changed so it does not return None. Would rather have it return something meaningful with a reason.
If status 401 is returned for either OMDb or TMDb there will still be parsable json to read to determent what went wrong, invalid api key, wrong url or other error.
If an error like a 503 occurs, stop the indexing and return proper statement.
In API_util.py we check for http status code, the return statements for any thing not code 200 needs to be changed so it does not return None. Would rather have it return something meaningful with a reason.
If status 401 is returned for either OMDb or TMDb there will still be parsable json to read to determent what went wrong, invalid api key, wrong url or other error.
If an error like a 503 occurs, stop the indexing and return proper statement.