Skip to content

Commit

Permalink
Exception should just be able to str
Browse files Browse the repository at this point in the history
  • Loading branch information
nwolff committed Nov 5, 2019
1 parent c44015b commit 898c418
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions payment/gateways/netaxept/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='django-payment',
version='1.4',
version='1.5',
description='',
long_description='',
author='Nicholas Wolff',
Expand Down

0 comments on commit 898c418

Please sign in to comment.