diff options
author | Richard Jones <richard@mechanicalcat.net> | 2012-03-15 13:34:20 -0700 |
---|---|---|
committer | Richard Jones <richard@mechanicalcat.net> | 2012-03-15 13:34:20 -0700 |
commit | 89318c1370fcf9956d017a43be2bf3ab794c1323 (patch) | |
tree | 758e65a96d368fa9548589f1e6de4d29fe0a5e65 /oauth.py | |
parent | 44c7c4d9c8d190dd3e5ca13184e0b3968269edc8 (diff) | |
download | decorator-89318c1370fcf9956d017a43be2bf3ab794c1323.tar.gz |
add more info
Diffstat (limited to 'oauth.py')
-rw-r--r-- | oauth.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)""" |