Skip to content

Commit

Permalink
fix: limit tips message only for http status code 401
Browse files Browse the repository at this point in the history
  • Loading branch information
hiohiohio committed Dec 26, 2023
1 parent eb86f4a commit b7f027f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpaca/common/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, error, http_error=None):
detailed_error["method"] = http_error.request.method
detailed_error["url"] = http_error.request.url
# add tips for auth key error
if detailed_error["status_code"] in [401, 403]:
if detailed_error["status_code"] == 401:
detailed_error[
"tips"
] = "please check your API key and environment (paper/sandbox/live)"
Expand Down

0 comments on commit b7f027f

Please sign in to comment.