Fix getValue return bug

This commit is contained in:
Nyymix 2022-05-30 00:22:39 +03:00
parent b67f02ffec
commit 3c4996a747

View file

@ -59,8 +59,10 @@ class Exif:
return self.exif return self.exif
def getValue(self, value): def getValue(self, value):
if self.exif[value]: if value in self.exif.keys():
return self.exif[value] return self.exif[value]
else:
return {}
def getJson(self): def getJson(self):
return json.dumps(self.exif) return json.dumps(self.exif)