Show failure exception message (#11964)

This commit is contained in:
Alex Yao 2024-06-14 20:34:14 -05:00 committed by GitHub
parent 9ceffeb191
commit 0d862d6aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,8 +57,8 @@ class DeepStack(DetectionApi):
files={"image": image_bytes},
timeout=self.api_timeout,
)
except requests.exceptions.RequestException:
logger.error("Error calling deepstack API")
except requests.exceptions.RequestException as ex:
logger.error("Error calling deepstack API: %s", ex)
return np.zeros((20, 6), np.float32)
response_json = response.json()