aboutsummaryrefslogtreecommitdiff
path: root/tools/cache.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cache.py')
-rw-r--r--tools/cache.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/cache.py b/tools/cache.py
index 13a53fe9..c316a1fd 100644
--- a/tools/cache.py
+++ b/tools/cache.py
@@ -49,7 +49,10 @@ class JCache:
def ensure(self):
self.cache.ensure()
if not os.path.exists(self.dirname):
- os.makedirs(self.dirname)
+ try:
+ os.makedirs(self.dirname)
+ except (IOError, OSError):
+ pass
def get_shortkey(self, keys):
if type(keys) not in [list, tuple]: