Fix state in errors.py.

This commit is contained in:
Juan Ignacio Fiorentino 2015-01-06 19:51:47 -03:00
parent 6469466546
commit a95d41a386

View file

@ -56,7 +56,7 @@ class AuthorizeError(Exception):
uri = '{0}?error={1}&error_description={2}'.format(redirect_uri, self.error, description)
# Add state if present.
uri = uri + '&state={0}'.format(state) if state else ''
uri = uri + ('&state={0}'.format(state) if state else '')
return uri