We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6db233b commit 9ac9f68Copy full SHA for 9ac9f68
astroquery/nrao/core.py
@@ -332,7 +332,8 @@ def query_async(self,
332
333
response.raise_for_status()
334
335
- if not response.content:
+ # fail if response is entirely whitespace or if it is empty
336
+ if not response.content.strip():
337
if cache:
338
last_pickle = self._last_query.hash()+".pickle"
339
cache_fn = os.path.join(self.cache_location, last_pickle)
0 commit comments