Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Commit

Permalink
corrige response reason
Browse files Browse the repository at this point in the history
  • Loading branch information
brenomfviana committed Mar 8, 2024
1 parent 8d40142 commit c647777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bb_wrapper/wrapper/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ def _process_response(response) -> requests.Response:
response.data = response.json(strict=False)
except JSONDecodeError:
response.data = {}
response.reason = response.data
response_content = response.data if response.data else response.content
response.reason = response_content
request_body = response.request.body
logger.debug(
f"Requisição {response.request.method} {response.request.url}\n"
Expand Down

0 comments on commit c647777

Please # to comment.