From fb5fb8ebc73f96548975432333dfdf01c4794d51 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Mon, 4 Jan 2021 12:37:12 -0800 Subject: [PATCH] Added additional warning to _photoinfo_export --- osxphotos/_version.py | 2 +- osxphotos/photoinfo/_photoinfo_export.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/osxphotos/_version.py b/osxphotos/_version.py index 88aba73e..25261e3d 100644 --- a/osxphotos/_version.py +++ b/osxphotos/_version.py @@ -1,5 +1,5 @@ """ version info """ -__version__ = "0.39.8" +__version__ = "0.39.9" diff --git a/osxphotos/photoinfo/_photoinfo_export.py b/osxphotos/photoinfo/_photoinfo_export.py index 421558e8..cbc3d30d 100644 --- a/osxphotos/photoinfo/_photoinfo_export.py +++ b/osxphotos/photoinfo/_photoinfo_export.py @@ -819,7 +819,7 @@ def export2( photo = None try: photo = photolib.fetch_uuid(self.uuid) - except PhotoKitFetchFailed: + except PhotoKitFetchFailed as e: # if failed to find UUID, might be a burst photo if self.burst and self._info["burstUUID"]: bursts = photolib.fetch_burst_uuid( @@ -828,6 +828,8 @@ def export2( # PhotoKit UUIDs may contain "/L0/001" so only look at beginning photo = [p for p in bursts if p.uuid.startswith(self.uuid)] photo = photo[0] if photo else None + if not photo: + logging.warning(f"PhotoKitFetchFailed exception exporting photo {self.uuid}: {e}") if photo: exported = photo.export( dest.parent, dest.name, version=PHOTOS_VERSION_CURRENT