Skip to content

Conversation

@walison17
Copy link
Contributor

No description provided.

@walison17 walison17 changed the title Extract auth wip: Extract auth Feb 14, 2025
@walison17 walison17 changed the title wip: Extract auth Refactor auth Feb 14, 2025
if 400 <= e.response.status_code < 500:
data = response.json()
raise SantanderRequestException(
data["error_description"],
Copy link
Contributor

@darkdks darkdks Feb 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eu teria cuidado, e não contaria com a existência desse campo. Os erros 4xx do santander não seguem um padrão de retorno na prática. Que tal na inexistência desse campo retornar o response inteiro?

@darkdks
Copy link
Contributor

darkdks commented Feb 15, 2025

Belas melhorias!

@walison17 walison17 merged commit 925b13a into main Feb 17, 2025
7 checks passed
@darkdks darkdks deleted the auth branch March 1, 2025 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants