From 05d7a63bbbe4a0369c842b75f99962aa8feaae3e Mon Sep 17 00:00:00 2001 From: arrix Date: Sun, 23 Apr 2023 12:44:12 +0800 Subject: [PATCH] fix: couldn't remove interrogate_tmp dir --- modules/interrogate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/interrogate.py b/modules/interrogate.py index cbb80683..0389cdec 100644 --- a/modules/interrogate.py +++ b/modules/interrogate.py @@ -41,7 +41,7 @@ def download_default_clip_interrogate_categories(content_dir): errors.display(e, "downloading default CLIP interrogate categories") finally: if os.path.exists(tmpdir): - os.remove(tmpdir) + os.removedirs(tmpdir) class InterrogateModels: