Skip to content

Commit 1d2621d

Browse files
emolterbsipocz
authored andcommitted
attempted fix to AttributeError: 'RingNodeClass' object has no attribute '_last_query'
1 parent b884513 commit 1d2621d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroquery/solarsystem/pds/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def _parse_result(self, response, verbose=None):
202202
self.last_response = response
203203
try:
204204
self._last_query.remove_cache_file(self.cache_location)
205-
except FileNotFoundError:
205+
except (FileNotFoundError, AttributeError):
206206
# this is allowed: if `cache` was set to False, this
207207
# won't be needed
208208
pass

0 commit comments

Comments
 (0)