From 797ba6ac1f40b5f4b554fe09e4f7885434c5ea5e Mon Sep 17 00:00:00 2001 From: Nicholas Wolff Date: Tue, 5 Nov 2019 15:46:27 +0100 Subject: [PATCH] Exception should just be able to str --- payment/gateways/netaxept/actions.py | 8 ++++---- setup.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/payment/gateways/netaxept/actions.py b/payment/gateways/netaxept/actions.py index 21958a5..a55b381 100644 --- a/payment/gateways/netaxept/actions.py +++ b/payment/gateways/netaxept/actions.py @@ -10,18 +10,18 @@ class NetaxeptException(Exception): - def __str__(self): - return repr(self.msg) + pass class PaymentAlreadyRegisteredAndAuthorized(NetaxeptException): - msg = 'Payment already registered and authorized' + def __str__(self): + return 'Payment already registered and authorized' def register_payment(payment: Payment) -> str: """ This part of the process is unique to netaxept so it cannot be implemented inside the - payment generic SPI. This implies that a programmer that wants to use the netaxept gateway will have to know + payment generic SPI. This implies that a programmer who wants to use the netaxept gateway will have to know to call this specific function. This function: diff --git a/setup.py b/setup.py index ec2f5ca..b5d9e99 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ setup( name='django-payment', - version='1.4', + version='1.6', description='', long_description='', author='Nicholas Wolff',