mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-23 01:16:47 -06:00
Show failure exception message (#11964)
This commit is contained in:
parent
9ceffeb191
commit
0d862d6aa8
@ -57,8 +57,8 @@ class DeepStack(DetectionApi):
|
|||||||
files={"image": image_bytes},
|
files={"image": image_bytes},
|
||||||
timeout=self.api_timeout,
|
timeout=self.api_timeout,
|
||||||
)
|
)
|
||||||
except requests.exceptions.RequestException:
|
except requests.exceptions.RequestException as ex:
|
||||||
logger.error("Error calling deepstack API")
|
logger.error("Error calling deepstack API: %s", ex)
|
||||||
return np.zeros((20, 6), np.float32)
|
return np.zeros((20, 6), np.float32)
|
||||||
|
|
||||||
response_json = response.json()
|
response_json = response.json()
|
||||||
|
Loading…
Reference in New Issue
Block a user