From ec68feec49578bf24ff27b7b80f322a7f4641fa8 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 19 Apr 2020 18:39:53 -0700 Subject: [PATCH] Removed warning from path_raw --- osxphotos/photoinfo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osxphotos/photoinfo.py b/osxphotos/photoinfo.py index fc238aa5..319e9e43 100644 --- a/osxphotos/photoinfo.py +++ b/osxphotos/photoinfo.py @@ -296,7 +296,10 @@ class PhotoInfo: glob_str = f"{filestem}*.{raw_ext}" raw_file = findfiles(glob_str, filepath) if len(raw_file) != 1: - logging.warning( + # Note: In Photos Version 5.0 (141.19.150), images not copied to Photos Library + # that are missing do not always trigger is_missing = True as happens + # in earlier version so it's possible for this check to fail, if so, return None + logging.debug( f"Error getting path to RAW file: {filepath}/{glob_str}" ) photopath = None