mirror of
https://github.com/aljazceru/hummingbot-dashboard.git
synced 2026-02-14 17:46:10 +01:00
(feat) handle credentials connection error
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import pandas as pd
|
||||
import requests
|
||||
import streamlit as st
|
||||
from hummingbot.strategy_v2.models.executors_info import ExecutorInfo
|
||||
|
||||
|
||||
@@ -268,6 +269,9 @@ class BackendAPIClient:
|
||||
"""Add connector keys."""
|
||||
url = f"{self.base_url}/add-connector-keys/{account_name}/{connector_name}"
|
||||
response = requests.post(url, json=connector_config)
|
||||
if response.status_code == 400:
|
||||
st.error(response.json()["detail"])
|
||||
return
|
||||
return response.json()
|
||||
|
||||
def get_accounts(self):
|
||||
|
||||
Reference in New Issue
Block a user