Fix getValue return bug
This commit is contained in:
parent
b67f02ffec
commit
3c4996a747
1 changed files with 3 additions and 1 deletions
4
exif.py
4
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)
|
||||
|
|
Loading…
Reference in a new issue