Skip to content

Commit 27fe47b

Browse files
committed
fix test coverage
1 parent a2984e3 commit 27fe47b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

oauth2_provider/views/mixins.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,11 @@ def error_response(self, error, **kwargs):
157157
oauthlib_error = error.oauthlib_error
158158

159159
separator = '?'
160-
if '?' in oauthlib_error.redirect_uri:
161-
separator = '&'
160+
try:
161+
if '?' in oauthlib_error.redirect_uri:
162+
separator = '&'
163+
except:
164+
pass
162165

163166
error_response = {
164167
'error': oauthlib_error,

0 commit comments

Comments
 (0)