diff options
author | Steven Huwig <steve.huwig@unizin.org> | 2017-01-05 10:07:22 -0500 |
---|---|---|
committer | Steven Huwig <steve.huwig@unizin.org> | 2017-01-05 10:07:22 -0500 |
commit | 47f38135620f9ee515df265bf4ec3877b3ef6500 (patch) | |
tree | 12fabe6c1c99c061f0dafa374cba6811e140eaf9 /oauthlib/oauth1 | |
parent | d2c7be6c38c9cc2dd3f5ba0dffaf38be42fcb418 (diff) | |
download | oauthlib-47f38135620f9ee515df265bf4ec3877b3ef6500.tar.gz |
Add log statements to except clauses
Diffstat (limited to 'oauthlib/oauth1')
-rw-r--r-- | oauthlib/oauth1/rfc5849/endpoints/signature_only.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/oauthlib/oauth1/rfc5849/endpoints/signature_only.py b/oauthlib/oauth1/rfc5849/endpoints/signature_only.py index d609b7c..99ff575 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/signature_only.py +++ b/oauthlib/oauth1/rfc5849/endpoints/signature_only.py @@ -34,13 +34,17 @@ class SignatureOnlyEndpoint(BaseEndpoint): """ try: request = self._create_request(uri, http_method, body, headers) - except errors.OAuth1Error: + except errors.OAuth1Error as e: + log.info( + 'Exception caught while validating request, %s.' % e) return False, None try: self._check_transport_security(request) self._check_mandatory_parameters(request) - except errors.OAuth1Error: + except errors.OAuth1Error as e: + log.info( + 'Exception caught while validating request, %s.' % e) return False, request if not self.request_validator.validate_timestamp_and_nonce( |