Update exception message to include underlying exception.

pull/3502/head
derekpierre 2024-05-16 18:38:35 -04:00
parent 88404ea0af
commit bced969340
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -45,11 +45,11 @@ def _recover_user_address(**context) -> ChecksumAddress:
)
except Auth.InvalidData as e:
raise InvalidContextVariableData(
f"Invalid context variable data for '{USER_ADDRESS_CONTEXT}': {e}"
f"Invalid context variable data for '{USER_ADDRESS_CONTEXT}'; {e}"
)
except Auth.AuthenticationFailed:
except Auth.AuthenticationFailed as e:
raise ContextVariableVerificationFailed(
f"Authentication failed for '{USER_ADDRESS_CONTEXT}'"
f"Authentication failed for '{USER_ADDRESS_CONTEXT}'; {e}"
)
except Exception as e:
# data could not be processed