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: