Fix exif data not read from .JPEG files (fix #58).

This commit is contained in:
Simon Conseil
2014-01-03 00:41:57 +01:00
parent 0db6af840d
commit e171f5847b

View File

@@ -182,7 +182,7 @@ def get_exif_tags(source):
logger = logging.getLogger(__name__)
if not '.jpg' in source.lower():
if os.path.splitext(source)[1].lower() not in ('.jpg', '.jpeg'):
return (None, None)
try: