diff --git a/src/plugins/gramplet/EditExifMetadata.py b/src/plugins/gramplet/EditExifMetadata.py index f11c696b2..3f16b0bc0 100644 --- a/src/plugins/gramplet/EditExifMetadata.py +++ b/src/plugins/gramplet/EditExifMetadata.py @@ -1691,6 +1691,9 @@ def _parse_datetime(value): Parse date and time and return a datetime object. """ value = value.rstrip() + if not value: + return None + if value.find(u':') >= 0: # Time part present if value.find(u' ') >= 0: