mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 13:32:08 +00:00
don't display config msg if wrong token
This commit is contained in:
@@ -165,7 +165,7 @@ def fetch_user_configs(
|
||||
headers={"Authorization": f"{token_type.title()} {token}"},
|
||||
timeout=timeout,
|
||||
)
|
||||
if response.status_code != 200:
|
||||
if response.status_code not in [200, 401]:
|
||||
console.print("[red]\nFailed to fetch configurations.[/red]")
|
||||
return response
|
||||
except requests.exceptions.ConnectionError:
|
||||
|
||||
Reference in New Issue
Block a user