Skip to content

Commit

Permalink
Fix/dbt deps retry none answer (#4225)
Browse files Browse the repository at this point in the history
* Fix issue #4178
Allow retries when the answer is None

* Include fix for #4178
Allow retries when the answer from dbt deps is None

* Add link to the PR

* Update exception and shorten line size

* Add test when dbt deps returns None

automatic commit by git-black, original commits:
  f20e83a
  • Loading branch information
b-per authored and iknox-fa committed Feb 8, 2022
1 parent b7a3992 commit 9078c55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/clients/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get(path, registry_base_url=None):
# See https://github.com/dbt-labs/dbt-core/issues/4577
if resp.json() is None:
raise requests.exceptions.ContentDecodingError(
'Request error: The response is None', response=resp
"Request error: The response is None", response=resp
)
return resp.json()

Expand Down

0 comments on commit 9078c55

Please sign in to comment.