Skip to content

Commit

Permalink
chore: reuse variable for status code
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Jun 3, 2024
1 parent ce12a50 commit fc291ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/enrollment/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def token(request):
if isinstance(e, HTTPError):
status_code = e.response.status_code

if e.response.status_code >= 500:
if status_code >= 500:
redirect = reverse(ROUTE_SYSTEM_ERROR)
else:
redirect = reverse(ROUTE_SERVER_ERROR)
Expand Down

0 comments on commit fc291ed

Please sign in to comment.