Skip to content

Commit 8084f93

Browse files
eas342keflavich
authored andcommitted
un-indenting head-safe to apply for cached files too
1 parent ebcbe4c commit 8084f93

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/query.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,11 +479,11 @@ def _download_file(self, url, local_filepath, timeout=None, auth=None,
479479
return
480480
else:
481481
open_mode = 'wb'
482-
if head_safe:
483-
response = self._session.request(method, url,
484-
timeout=timeout, stream=True,
485-
auth=auth, **kwargs)
486-
response.raise_for_status()
482+
if head_safe:
483+
response = self._session.request(method, url,
484+
timeout=timeout, stream=True,
485+
auth=auth, **kwargs)
486+
response.raise_for_status()
487487

488488
blocksize = astropy.utils.data.conf.download_block_size
489489

0 commit comments

Comments
 (0)