Skip to content

Commit

Permalink
(#2195) DBT_HTTP_TIMEOUT moved inside system download call
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  1c60882
  • Loading branch information
Raalsky authored and iknox-fa committed Feb 8, 2022
1 parent edba450 commit 2f340c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/clients/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ def download_with_retries(

def download(url: str, path: str, timeout: Optional[Union[float, tuple]] = None) -> None:
path = convert_path(path)
connection_timeout = timeout or float(os.getenv('DBT_HTTP_TIMEOUT', 10))
connection_timeout = timeout or float(os.getenv("DBT_HTTP_TIMEOUT", 10))
response = requests.get(url, timeout=connection_timeout)
with open(path, "wb") as handle:
for block in response.iter_content(1024 * 64):
Expand Down

0 comments on commit 2f340c7

Please sign in to comment.