Skip to content

Commit

Permalink
CV2-4790 add error log for any empty hash value (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney authored Jul 31, 2024
1 parent ebe3332 commit 62e41ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main/lib/shared_models/video_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def search(self, task):
if video.hash_value is None:
result = self.get_blocked_response(task)
video.hash_value = result.get("body", {}).get("result", {}).get("hash_value")

ErrorLog.notify(Exception("Hash value found to be none for a video!"), {"task": task, "video_id": video.id})
matches = self.search_by_context(body["context"])
default_list = list(np.zeros(len(video.hash_value)))
try:
Expand Down

0 comments on commit 62e41ec

Please sign in to comment.