Private
Public Access
1
0

adding some model changes around paid plans

This commit is contained in:
Sander Roosendaal
2018-12-18 19:22:27 +01:00
parent 6d7d9f5792
commit 75261118c2
9 changed files with 401 additions and 15 deletions

View File

@@ -426,6 +426,13 @@ class NoTokenError(Exception):
def __str__(self):
return repr(self.value)
class ProcessorCustomerError(Exception):
def __init__(self, value):
self.value=value
def __str__(self):
return repr(self.value)
# Custom exception handler, returns a 401 HTTP message
# with exception details in the json data
def custom_exception_handler(exc,message):