Skip to content

Commit 27515e4

Browse files
authored
Merge pull request #2274 from mfisherlevine/patch-1
Issue #2273
2 parents cda88ef + 215f99c commit 27515e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

astroquery/query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ def __init__(self):
173173
self.cache_location = os.path.join(
174174
paths.get_cache_dir(), 'astroquery',
175175
self.__class__.__name__.split("Class")[0])
176-
if not os.path.exists(self.cache_location):
177-
os.makedirs(self.cache_location)
176+
os.makedirs(self.cache_location, exist_ok=True)
178177
self._cache_active = True
179178

180179
def __call__(self, *args, **kwargs):

0 commit comments

Comments
 (0)