summaryrefslogtreecommitdiff
path: root/oauth.py
diff options
context:
space:
mode:
authorRichard Jones <richard@mechanicalcat.net>2012-03-15 13:34:20 -0700
committerRichard Jones <richard@mechanicalcat.net>2012-03-15 13:34:20 -0700
commit89318c1370fcf9956d017a43be2bf3ab794c1323 (patch)
tree758e65a96d368fa9548589f1e6de4d29fe0a5e65 /oauth.py
parent44c7c4d9c8d190dd3e5ca13184e0b3968269edc8 (diff)
downloaddecorator-89318c1370fcf9956d017a43be2bf3ab794c1323.tar.gz
add more info
Diffstat (limited to 'oauth.py')
-rw-r--r--oauth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/oauth.py b/oauth.py
index 33f6ff2..bd7bd67 100644
--- a/oauth.py
+++ b/oauth.py
@@ -40,6 +40,9 @@ class OAuthError(RuntimeError):
"""Generic exception class."""
def __init__(self, message='OAuth error occured.'):
self.message = message
+ def __str__(self):
+ return '%s(%s)' % (self.__class__.__name__, self.message)
+
def build_authenticate_header(realm=''):
"""Optional WWW-Authenticate header (401 error)"""