fix: couldn't remove interrogate_tmp dir

This commit is contained in:
arrix 2023-04-23 12:44:12 +08:00
parent 22bcc7be42
commit 05d7a63bbb

View File

@ -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: