Skip to content

Commit

Permalink
download: blacken
Browse files Browse the repository at this point in the history
  • Loading branch information
zmwangx committed Nov 8, 2018
1 parent 5dc2c9b commit 46ad6fc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/caterpillar/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,7 @@ def resumable_download(
headers["Range"] = f"bytes={existing_bytes}-"
try:
logger.debug(f"GET {url}")
r = requests.get(
url,
headers=headers,
stream=True,
timeout=REQUESTS_TIMEOUT,
)
r = requests.get(url, headers=headers, stream=True, timeout=REQUESTS_TIMEOUT)
if r.status_code not in {200, 206}:
logger.error(f"GET {url}: HTTP {r.status_code}")
return False
Expand Down

0 comments on commit 46ad6fc

Please sign in to comment.