mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Use explicit chaining to capture the cause
This commit is contained in:
parent
b2f2ce3523
commit
96143f7e60
@ -18,7 +18,7 @@ def validate_transaction_schema(tx_body):
|
||||
try:
|
||||
jsonschema.validate(tx_body, TX_SCHEMA)
|
||||
except jsonschema.ValidationError as exc:
|
||||
raise SchemaValidationError(str(exc))
|
||||
raise SchemaValidationError(str(exc)) from exc
|
||||
|
||||
|
||||
__all__ = ['TX_SCHEMA', 'TX_SCHEMA_YAML', 'validate_transaction_schema']
|
||||
|
Loading…
x
Reference in New Issue
Block a user