From 2981ed6a1f2769c374917a9400fc7efd380c7928 Mon Sep 17 00:00:00 2001 From: Christian Moser Date: Sat, 27 Dec 2025 13:30:13 +0100 Subject: [PATCH] 2025.12.27 13:30:13 (cachyos.cmoser.eu) --- tinywiki/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinywiki/utils.py b/tinywiki/utils.py index b25ad60..f745989 100644 --- a/tinywiki/utils.py +++ b/tinywiki/utils.py @@ -215,8 +215,8 @@ def import_builtin_images(json_file: str | Path, user=None): def import_builtin_images_from_zip(zip_file: str | Path, user=None): - if not isinstance(zip, Path): - zip_file = Path(zip).resolve() + if not isinstance(zip_file, Path): + zip_file = Path(zip_file).resolve() if not zip_file.exists(): raise ValueError(f"File \"{zip_file}\" does not exist!")