Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_exif(self):
try:
with open(str(self.relative_folder / self.filename),
'rb') as image_file:
self.__exif = exif.Image(image_file)
self.got_meta = True
except (IOError, AssertionError):
self.got_meta = False