I'm building a Python program to sort pictures by "EXIF DateTimeOriginal" tag using the `exifread` module. There is an error when not picture file (e.g. .mp3 file) is processed by `exifread.process_file(item)`. I would like Python to ignore files without EXIF tags so I use `try, except` statement but it still returns the error `File format not recognized` which terminates the program.

I added `tags["EXIF DateTimeOriginal"] == True` which stopped program termination but the error is still printed.

Has anyone idea how to make `exifread` module to ignore files which are not pictures?

```
    import exifread

item = "D:\TEMP\Vesna.mp3"

with open(item, 'rb') as file:
    try:
        tags = exifread.process_file(file, stop_tag="EXIF DateTimeOriginal")
        tags["EXIF DateTimeOriginal"] == True
    except:
        print("No tag")
    else:
        taken = tags["EXIF DateTimeOriginal"]
        print(tags["EXIF DateTimeOriginal"])

**returns**
File format not recognized.
No tag

```

I could sort out not picture files before fetching them to `exifread` commands but I have the impression that it would take more time and also some images could still not possess the required tag.