From 4d9e21ea1608f5ef11ab5795e1e6968fac2ccb3f Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Thu, 29 Jul 2021 06:32:07 -0700 Subject: [PATCH] Added error logging to PhotoInfo.detected_text --- osxphotos/photoinfo/photoinfo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osxphotos/photoinfo/photoinfo.py b/osxphotos/photoinfo/photoinfo.py index 48da1978..0e479d33 100644 --- a/osxphotos/photoinfo/photoinfo.py +++ b/osxphotos/photoinfo/photoinfo.py @@ -1134,6 +1134,7 @@ class PhotoInfo: try: detected_text = detect_text(path) except Exception as e: + logging.warning(f"Error detecting text in photo {self.uuid} at {path}: {e}") detected_text = [] self._detected_text[(path, confidence_threshold)] = [