Skip to content

Commit 773478f

Browse files
Clara Brasseurceb8
authored andcommitted
fixing bugs
1 parent 02e5908 commit 773478f

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
@@ -243,14 +243,14 @@ def _response_hook(self, response, *args, **kwargs):
243243
f"-----------------------------------------", '\t')
244244
log.log(5, f"HTTP response\n{response_log}")
245245

246-
def clear_cache():
246+
def clear_cache(self):
247247
"""Removes all cache files."""
248248

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

253-
def reset_cache_preferences():
253+
def reset_cache_preferences(self):
254254
"""Resets cache preferences to default values"""
255255

256256
self.cache_location = os.path.join(

0 commit comments

Comments
 (0)