Skip to content

Commit

Permalink
added additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
P-T-I committed Jul 26, 2022
1 parent 3317b7d commit dae6590
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3
2.4
2 changes: 1 addition & 1 deletion spectacles/webapp/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3
2.4
2 changes: 2 additions & 0 deletions spectacles/webapp/token_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ def authenticate(auth_dict, get_data):

return True, get_data
elif str(result.status_code).startswith("5"):
logger.error(f"{result}")
raise ConnectionError
elif str(result.status_code).startswith("4"):
logger.error(f"{result}")
raise ConnectionRefusedError

else:
Expand Down

0 comments on commit dae6590

Please sign in to comment.