Skip to content

Commit fc8c0df

Browse files
author
Clara Brasseur
committed
fixing bugs
1 parent e181b3f commit fc8c0df

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
@@ -180,14 +180,14 @@ def __call__(self, *args, **kwargs):
180180
""" init a fresh copy of self """
181181
return self.__class__(*args, **kwargs)
182182

183-
def clear_cache():
183+
def clear_cache(self):
184184
"""Removes all cache files."""
185185

186-
cache_files = [x for x in os.listdir(self.cache_location) if x.endswidth("pickle")]
186+
cache_files = [x for x in os.listdir(self.cache_location) if x.endswith("pickle")]
187187
for fle in cache_files:
188-
os.remove(fle)
188+
os.remove(os.path.join(self.cache_location,fle))
189189

190-
def reset_cache_preferences():
190+
def reset_cache_preferences(self):
191191
"""Resets cache preferences to default values"""
192192

193193
self.cache_location = os.path.join(

0 commit comments

Comments
 (0)