Skip to content

Commit

Permalink
Show failure exception message (#11964)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyao2015 committed Jun 15, 2024
1 parent 9ceffeb commit 0d862d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frigate/detectors/plugins/deepstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def detect_raw(self, tensor_input):
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()
Expand Down

0 comments on commit 0d862d6

Please sign in to comment.