Skip to content

Commit

Permalink
Add TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Oct 2, 2023
1 parent 87ffd23 commit d6fd755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/utils/r_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def request(

try:
response.json()
except JSONDecodeError:
except (TypeError, JSONDecodeError):
continue
return response

Expand Down

0 comments on commit d6fd755

Please sign in to comment.