Skip to content

Commit a44f536

Browse files
authored
Fixed syntax error
1 parent c4e765e commit a44f536

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

oauth2_provider/oauth2_backends.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ def extract_body(self, request):
180180
"""
181181
try:
182182
body = json.loads(request.body.decode("utf-8")).items()
183-
except AttributeError, ValueError:
183+
except AttributeError:
184+
body = ""
185+
except ValueError:
184186
body = ""
185187

186188
return body

0 commit comments

Comments
 (0)