Reached EOF while decoding PNG error (how to ignore it?)...

So, I get this error:


Reached EOF while decoding PNG
IMB_ibImageFromMemory: unknown fileformat (/home/antoni4040/Έγγραφα/Layout1.png)

It’s very annoying cause it stops the whole program…
How can I say to Blender to ignore it?
Thats all I want, because, apart from stopping the add-on, it doesn’t cause any trouble(really)…

Please, I need an answer to that…

You have to tell us what library you are using to decode the PNG. Chances are that you just need to put your calls inside a try-except block and handle the exception accordingly.

Well, this is what I’m doing:


try:
    self.layout_texture.image.reload()                        
except:
    pass    

But still, I get the error, even if I have a try-except block…