|
|
@ -413,7 +413,7 @@ def sherlock(
|
|
|
|
if isinstance(error_codes, int):
|
|
|
|
if isinstance(error_codes, int):
|
|
|
|
error_codes = [error_codes]
|
|
|
|
error_codes = [error_codes]
|
|
|
|
|
|
|
|
|
|
|
|
if r.status_code in error_codes:
|
|
|
|
if error_codes is not None and r.status_code in error_codes:
|
|
|
|
query_status = QueryStatus.AVAILABLE
|
|
|
|
query_status = QueryStatus.AVAILABLE
|
|
|
|
elif r.status_code >= 300 or r.status_code < 200:
|
|
|
|
elif r.status_code >= 300 or r.status_code < 200:
|
|
|
|
query_status = QueryStatus.AVAILABLE
|
|
|
|
query_status = QueryStatus.AVAILABLE
|
|
|
|