Skip to content

Commit a0b1a32

Browse files
authored
Ignore rmtree errors for serverless environments (#238)
1 parent 320250d commit a0b1a32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contextily/tile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def set_cache_dir(path):
5858

5959

6060
def _clear_cache():
61-
shutil.rmtree(tmpdir)
61+
shutil.rmtree(tmpdir, ignore_errors=True)
6262

6363

6464
atexit.register(_clear_cache)

0 commit comments

Comments
 (0)