Added error logging to PhotoInfo.detected_text

This commit is contained in:
Rhet Turnbull
2021-07-29 06:32:07 -07:00
parent 1ee3e035c4
commit 4d9e21ea16

View File

@@ -1134,6 +1134,7 @@ class PhotoInfo:
try: try:
detected_text = detect_text(path) detected_text = detect_text(path)
except Exception as e: except Exception as e:
logging.warning(f"Error detecting text in photo {self.uuid} at {path}: {e}")
detected_text = [] detected_text = []
self._detected_text[(path, confidence_threshold)] = [ self._detected_text[(path, confidence_threshold)] = [