From a8814edc18230c9310ad1978a3c35696e535a789 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 11 Sep 2023 13:56:03 +0200 Subject: [PATCH] Fix warning message code for make_tempdir permission error --- weasel/util/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasel/util/filesystem.py b/weasel/util/filesystem.py index 4729b84..87eab45 100644 --- a/weasel/util/filesystem.py +++ b/weasel/util/filesystem.py @@ -47,7 +47,7 @@ def force_remove(rmfunc, path, ex): try: shutil.rmtree(str(d), onerror=force_remove) except PermissionError as e: - warnings.warn(Warnings.W091.format(dir=d, msg=e)) + warnings.warn(Warnings.W801.format(dir=d, msg=e)) def is_cwd(path: Union[Path, str]) -> bool: