Skip to content

Commit 898c418

Browse files
committed
Exception should just be able to str
1 parent c44015b commit 898c418

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

payment/gateways/netaxept/actions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010

1111

1212
class NetaxeptException(Exception):
13-
def __str__(self):
14-
return repr(self.msg)
13+
pass
1514

1615

1716
class PaymentAlreadyRegisteredAndAuthorized(NetaxeptException):
18-
msg = 'Payment already registered and authorized'
17+
def __str__(self):
18+
return 'Payment already registered and authorized'
1919

2020

2121
def register_payment(payment: Payment) -> str:
2222
"""
2323
This part of the process is unique to netaxept so it cannot be implemented inside the
24-
payment generic SPI. This implies that a programmer that wants to use the netaxept gateway will have to know
24+
payment generic SPI. This implies that a programmer who wants to use the netaxept gateway will have to know
2525
to call this specific function.
2626
2727
This function:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name='django-payment',
6-
version='1.4',
6+
version='1.5',
77
description='',
88
long_description='',
99
author='Nicholas Wolff',

0 commit comments

Comments
 (0)