[IMP] connector_walmart: authentication API changes

This commit is contained in:
Jared Kipe
2022-02-03 05:40:40 -08:00
parent 311d8a274a
commit cc816b8f96
9 changed files with 430 additions and 292 deletions

View File

@@ -0,0 +1,21 @@
class BaseException(Exception):
"""
Base Exception which implements message attr on exceptions
Required for: Python 3
"""
def __init__(self, message=None, *args, **kwargs):
self.message = message
super(BaseException, self).__init__(
self.message, *args, **kwargs
)
def __str__(self):
return self.message or self.__class__.__name__
class WalmartException(BaseException):
pass
class WalmartAuthenticationError(WalmartException):
pass