diff --git a/exif.py b/exif.py index ac579a5..22993e5 100644 --- a/exif.py +++ b/exif.py @@ -59,8 +59,10 @@ class Exif: return self.exif def getValue(self, value): - if self.exif[value]: + if value in self.exif.keys(): return self.exif[value] + else: + return {} def getJson(self): return json.dumps(self.exif)