Dwolla dwollav2.error.Error code UpdateCredentials on expired Plaid token — misleading generic error

Creating a funding source via Dwolla/Plaid tokenization with an expired token raised a generic dwollav2.error.Error: {"code":"UpdateCredentials","message":"The login details for this token have changed."}. The generic Error class made it hard to isolate expired-token cases from other failures. The Dwolla team agreed and shipped a dedicated error class for this scenario.

Dwolla added a new error class specifically for the UpdateCredentials scenario (resolved by PR #58) so you can catch expired/revoked tokens distinctly from generic errors. They deliberately didn't make it Plaid-specific since the same code is sent for any third-party open-banking verification provider. Upgrade dwollav2 to the release containing the new class and catch it by name instead of parsing the generic Error message. Source: https://github.com/Dwolla/dwolla-v2-python/issues/50

Source: https://github.com/Dwolla/dwolla-v2-python/issues/50