Skip to content

Commit a21a63f

Browse files
committed
fix: revert catch
1 parent aceccfb commit a21a63f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/vsc/utils/cache.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
"""
3131
import diskcache as dc
3232
import logging
33-
import shutil
3433
import time
3534

3635

@@ -70,11 +69,7 @@ def __init__(self, filename, retain_old=True, raise_unpickable=False):
7069
self.retain_old = retain_old # this is no longer used
7170

7271
self.filename = filename
73-
try:
74-
self.cache = dc.Cache(filename)
75-
except:
76-
shutil.rmtree(filename)
77-
self.cache = dc.Cache(filename)
72+
self.cache = dc.Cache(filename)
7873

7974
if not retain_old:
8075
self.cache.clear()

0 commit comments

Comments
 (0)