summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/__init__.py
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2014-09-24 17:32:39 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2014-09-24 17:32:39 +0100
commit2d7dab66b589159712f96bd0086f45ae3c32216d (patch)
tree1e24d34ada1982ef2865530ff18d228164c0d35a /oauthlib/oauth2/rfc6749/__init__.py
parent39013947bd2e242dda85fb0f150c49be23fd7510 (diff)
downloadoauthlib-2d7dab66b589159712f96bd0086f45ae3c32216d.tar.gz
Auto pep8 changes throughout the code base.
Diffstat (limited to 'oauthlib/oauth2/rfc6749/__init__.py')
-rw-r--r--oauthlib/oauth2/rfc6749/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/__init__.py b/oauthlib/oauth2/rfc6749/__init__.py
index 05a7601..aff0ed8 100644
--- a/oauthlib/oauth2/rfc6749/__init__.py
+++ b/oauthlib/oauth2/rfc6749/__init__.py
@@ -19,6 +19,7 @@ log = logging.getLogger(__name__)
class BaseEndpoint(object):
+
def __init__(self):
self._available = True
self._catch_errors = False
@@ -57,7 +58,8 @@ def catch_errors_and_unavailability(f):
raise
except Exception as e:
error = ServerError()
- log.warning('Exception caught while processing request, %s.' % e)
+ log.warning(
+ 'Exception caught while processing request, %s.' % e)
return {}, error.json, 500
else:
return f(endpoint, uri, *args, **kwargs)