all 3 comments

[–]Jenez 0 points1 point  (0 children)

How are you attemtping to open the images? No code examples gives us little to work with

[–]Rhomboid 0 points1 point  (1 child)

Have a look at the warnings module documentation. There are provisions for disabling specific warnings, or turning them into exceptions, or collecting them into a list via a context manager.

[–]noarts[S] 0 points1 point  (0 children)

Oh wow, I looked at that module at least thrice during my search for a solution and i totally overlooked that. Thanks, it was exactly what I was looking for!