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,7 +344,7 @@ class Transaction(object):
|
||||
|
||||
if operation not in Transaction.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))
|
||||
else:
|
||||
self.operation = operation
|
||||
|
Loading…
x
Reference in New Issue
Block a user