This commit is contained in:
Hyacinth-of-Security 2026-07-29 21:59:02 +08:00 committed by GitHub
commit b9be669818
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):