Skip to content

Commit

Permalink
fix: headers should be added as dictionary, not called.
Browse files Browse the repository at this point in the history
  • Loading branch information
waza-ari committed Jan 7, 2024
1 parent a70b89b commit e0e7b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyverein/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _do_request( # noqa: PLR0913
self.logger.debug("Request returned status code %d", res.status_code)

if res.status_code == 429:
retry_after = res.headers("Retry-After")
retry_after = res.headers["Retry-After"]
self.logger.warning(
"Request returned status code 429, too many requests. Wait %d seconds",
retry_after,
Expand Down

0 comments on commit e0e7b09

Please sign in to comment.