Skip to content

Commit f72ec07

Browse files
Clara Brasseurceb8
authored andcommitted
fixing bugs
1 parent 58b66e6 commit f72ec07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

astroquery/query.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,14 @@ def _response_hook(self, response, *args, **kwargs):
241241
f"-----------------------------------------", '\t')
242242
log.log(5, f"HTTP response\n{response_log}")
243243

244-
def clear_cache():
244+
def clear_cache(self):
245245
"""Removes all cache files."""
246246

247-
cache_files = [x for x in os.listdir(self.cache_location) if x.endswidth("pickle")]
247+
cache_files = [x for x in os.listdir(self.cache_location) if x.endswith("pickle")]
248248
for fle in cache_files:
249-
os.remove(fle)
249+
os.remove(os.path.join(self.cache_location,fle))
250250

251-
def reset_cache_preferences():
251+
def reset_cache_preferences(self):
252252
"""Resets cache preferences to default values"""
253253

254254
self.cache_location = os.path.join(

0 commit comments

Comments
 (0)