diff --git a/pyop2/compilation.py b/pyop2/compilation.py index 8fd7bf023..ffd01f3b5 100644 --- a/pyop2/compilation.py +++ b/pyop2/compilation.py @@ -659,6 +659,6 @@ def clear_cache(prompt=False): if remove: print(f"Removing cached libraries from {cachedir}") - shutil.rmtree(cachedir) + shutil.rmtree(cachedir, ignore_errors=True) else: print("Not removing cached libraries")