Python Script to detect broken images

后端 未结 4 2107
深忆病人
深忆病人 2021-01-24 07:10

I wrote a python script to detect broken images and count them, The problem in my script is it detects all the images and does not detect broken images. How to fix this. I refe

4条回答
  •  轮回少年
    2021-01-24 07:55

    I am getting an error that tells me that Image.load is not available. Image.open appears to work.

    I was also getting errors using:

    except (IOError, SyntaxError) as e:
    

    I just changed that to:

    except:
    

    and it worked fine.

提交回复
热议问题