Unverified Commit 60062b51 authored by catboxanon's avatar catboxanon Committed by GitHub
Browse files

Remove try/except in img metadata read

parent 7a1bbf99
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -668,10 +668,7 @@ def read_info_from_image(image):
    for field in ['jfif', 'jfif_version', 'jfif_unit', 'jfif_density', 'dpi', 'exif',
                    'loop', 'background', 'timestamp', 'duration', 'progressive', 'progression',
                    'icc_profile', 'chromaticity']:
        try:
        items.pop(field, None)
        except KeyError:
            pass

    if items.get("Software", None) == "NovelAI":
        try: