ruff check; update ValidationError params
This commit is contained in:
@@ -27,11 +27,11 @@ def get_image_list(folder_name: str) -> list:
|
||||
|
||||
Path(thumb_path).mkdir(exist_ok=True)
|
||||
|
||||
for _file in os.listdir(image_path):
|
||||
if Path(_file).suffix.lower()[1:] not in get_available_image_extensions():
|
||||
for _file in image_path.iterdir():
|
||||
if _file.suffix.lower()[1:] not in get_available_image_extensions():
|
||||
continue
|
||||
|
||||
thumb_file_path = Path(thumb_path) / f"thumb_{_file}"
|
||||
thumb_file_path = Path(thumb_path) / f"thumb_{_file.name}"
|
||||
if not Path(thumb_file_path).exists():
|
||||
with Image.open(Path(image_path) / _file, "r") as im:
|
||||
if im._getexif() is not None:
|
||||
|
||||
Reference in New Issue
Block a user