Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions oauth2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def from_request(cls, http_method, http_url, headers=None, parameters=None,
# Get the parameters from the header.
header_params = cls._split_header(auth_header)
parameters.update(header_params)
except:
except Exception:
raise Error('Unable to parse OAuth parameters from '
'Authorization header.')

Expand Down Expand Up @@ -733,7 +733,7 @@ def _get_version(self, request):
"""Return the version of the request for this server."""
try:
version = request.get_parameter('oauth_version')
except:
except Exception:
version = OAUTH_VERSION

return version
Expand Down