summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oauthlib/oauth2/rfc6749/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/errors.py b/oauthlib/oauth2/rfc6749/errors.py
index da24fea..6fcb751 100644
--- a/oauthlib/oauth2/rfc6749/errors.py
+++ b/oauthlib/oauth2/rfc6749/errors.py
@@ -60,7 +60,7 @@ class OAuth2Error(Exception):
self.response_type = request.response_type
self.response_mode = request.response_mode
self.grant_type = request.grant_type
- if not state:
+ if state is None:
self.state = request.state
else:
self.redirect_uri = None