Skip to content

Commit

Permalink
Update error_views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liyaqin1 authored May 31, 2024
1 parent 0d4eabb commit d9675f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy-board/deploy_board/webapp/error_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def process_exception(self, request, exception):
if request.is_ajax():
ajax_vars = {'success': False, 'error': str(exception)}
ret = 500
if isinstance(exception, FailedAuthenticationException):
if isinstance(exception, IllegalArgumentException):
ret = 400
elif isinstance(exception, FailedAuthenticationException):
ret = 401
elif isinstance(exception, NotAuthorizedException):
ret = 403
Expand Down

0 comments on commit d9675f8

Please sign in to comment.