From 55ee5550a04743ca839b4de3a6133b63ed91c65a Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 13 Oct 2016 10:46:24 +0200 Subject: [PATCH] Correct raised error --- transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transaction.py b/transaction.py index eed38878..d370a61c 100644 --- a/transaction.py +++ b/transaction.py @@ -344,8 +344,8 @@ class Transaction(object): if operation not in Transaction.ALLOWED_OPERATIONS: allowed_ops = ', '.join(self.__class__.ALLOWED_OPERATIONS) - raise TypeError('`operation` must be one of {}' - .format(allowed_ops)) + raise ValueError('`operation` must be one of {}' + .format(allowed_ops)) else: self.operation = operation