mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Correct raised error
This commit is contained in:
parent
997e497d0a
commit
55ee5550a0
@ -344,8 +344,8 @@ class Transaction(object):
|
|||||||
|
|
||||||
if operation not in Transaction.ALLOWED_OPERATIONS:
|
if operation not in Transaction.ALLOWED_OPERATIONS:
|
||||||
allowed_ops = ', '.join(self.__class__.ALLOWED_OPERATIONS)
|
allowed_ops = ', '.join(self.__class__.ALLOWED_OPERATIONS)
|
||||||
raise TypeError('`operation` must be one of {}'
|
raise ValueError('`operation` must be one of {}'
|
||||||
.format(allowed_ops))
|
.format(allowed_ops))
|
||||||
else:
|
else:
|
||||||
self.operation = operation
|
self.operation = operation
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user