Commits

Alexandre Rossi committed 980a8e5

do not crash on bad encoding of EXIF flash info

Comments (0)

Files changed (1)

lazygal/metadata.py

 
     def get_flash(self):
         try:
-            return self._metadata['Exif.Photo.Flash'].human_value
+            flash_info = self._metadata['Exif.Photo.Flash'].human_value
+            return self._fallback_to_encoding(flash_info)
         except KeyError:
             return ''