Correct raised error

This commit is contained in:
tim 2016-10-13 10:46:24 +02:00 committed by Sylvain Bellemare
parent 997e497d0a
commit 55ee5550a0

View File

@ -344,7 +344,7 @@ 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