mirror of
https://git.cmoser.eu/tinytools/django-tinywiki.git
synced 2026-02-04 06:06:33 +01:00
2025.12.27 13:30:13 (cachyos.cmoser.eu)
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user