diff --git a/README.md b/README.md index 03ccf05..1b0b1ad 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ orders = api.Orders.all(customer_id=customer.id) ### Error handling Minimal validation of data is performed by the client, instead deferring this to the server. -A `HttpException` will be raised for any unusual status code: +A `HttpException` will be raised for any unusual status code: * 3xx status code: `RedirectionException` * 4xx status code: `ClientRequestException` diff --git a/bigcommerce/exception.py b/bigcommerce/exception.py index 4cfb34d..f622ae3 100644 --- a/bigcommerce/exception.py +++ b/bigcommerce/exception.py @@ -5,7 +5,7 @@ class HttpException(Exception): def __init__(self, msg, res): super(Exception, self).__init__(msg) self.response = res - + @property def status_code(self): return self.response.status_code @@ -15,10 +15,10 @@ def headers(self): @property def content(self): return self.response.content - + # 204 class EmptyResponseWarning(HttpException): pass - + # 4xx codes class ClientRequestException(HttpException): pass # class Unauthorised(ClientRequestException): pass @@ -38,4 +38,4 @@ class ServerException(HttpException): pass # 3xx codes class RedirectionException(HttpException): pass -class NotLoggedInException(Exception): pass \ No newline at end of file +class NotLoggedInException(Exception): pass diff --git a/setup.py b/setup.py index db6bd45..a3aad14 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ def read(fname): setup( name = "bigcommerce", version = "0.10.2", - + packages=find_packages(), package_data = {'' : ['LICENSE', 'README.md']}, install_requires = ['requests>=2.1.0', @@ -19,7 +19,7 @@ def read(fname): license = "MIT", keywords = "bigcommerce api client", url = "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/bigcommerce/bigcommerce-api-python", - + long_description=read('README.md'), classifiers=[ "Development Status :: 3 - Alpha",