From 3c4996a747941497d74ef5941d9ec6582258f032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9DNyymix=E2=80=9D?= Date: Mon, 30 May 2022 00:22:39 +0300 Subject: [PATCH] Fix getValue return bug --- exif.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)