This commit is contained in:
Suraj Kumar 2026-08-02 13:37:49 +05:30 committed by GitHub
commit bfd03c197a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return True
except:
except Exception:
return False
def check_image_dir(path):

View File

@ -48,7 +48,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return im.format=='JPEG'
except:
except Exception:
return False
def check_image_dir(path):

View File

@ -134,7 +134,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return True
except:
except Exception:
return False
def check_image_dir(path):

View File

@ -48,7 +48,7 @@ def check_image(fn):
im = Image.open(fn)
im.verify()
return im.format=='JPEG'
except:
except Exception:
return False
def check_image_dir(path):