From 4b30b3b4260e2c7409e18825e5b626efe646db16 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sat, 18 Apr 2020 07:59:04 -0700 Subject: [PATCH] Fixed suffix check on export to be case insensitive --- osxphotos/photoinfo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/osxphotos/photoinfo.py b/osxphotos/photoinfo.py index 0d0d5196..b2c7438c 100644 --- a/osxphotos/photoinfo.py +++ b/osxphotos/photoinfo.py @@ -717,8 +717,11 @@ class PhotoInfo: # warn if suffixes don't match but ignore .JPG / .jpeg as # Photo's often converts .JPG to .jpeg suffixes = sorted([x.lower() for x in [dest.suffix, actual_suffix]]) - if dest.suffix != actual_suffix and suffixes != [".jpeg", ".jpg"]: - logging.debug( + if dest.suffix.lower() != actual_suffix.lower() and suffixes != [ + ".jpeg", + ".jpg", + ]: + logging.warning( f"Invalid destination suffix: {dest.suffix}, should be {actual_suffix}" )