forked from kodorvan/stcs
Fixed
This commit is contained in:
@@ -32,7 +32,7 @@ async def get_balance(tg_id: int, message) -> float:
|
||||
api_secret=secret_key
|
||||
)
|
||||
|
||||
if api_key == 'None' or secret_key == 'None':
|
||||
if api_key is None or secret_key is None:
|
||||
await message.answer('⚠️ Подключите платформу для торговли',
|
||||
reply_markup=inline_markup.connect_bybit_api_message)
|
||||
return 0
|
||||
@@ -48,5 +48,5 @@ async def get_balance(tg_id: int, message) -> float:
|
||||
return 0
|
||||
except Exception as e:
|
||||
logger.error(f"Ошибка при получении общего баланса: {e}")
|
||||
await message.answer('⚠️ Ошибка при получении баланса')
|
||||
await message.answer('Ошибка при подключении, повторите попытку', reply_markup=inline_markup.connect_bybit_api_message)
|
||||
return 0
|
||||
|
Reference in New Issue
Block a user