From a50faacb482f483064e33e472d8c3dc048cd737a Mon Sep 17 00:00:00 2001 From: dsyoon Date: Thu, 7 Aug 2025 02:18:34 +0900 Subject: [PATCH] init --- stock_monitor.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/stock_monitor.py b/stock_monitor.py index 4cfb875..ca9c2ee 100644 --- a/stock_monitor.py +++ b/stock_monitor.py @@ -498,8 +498,11 @@ def monitor_coins(): if recent_data['buy_point'].iloc[-1] != 1: continue print(f" - {KR_COINS[symbol]} ({symbol}): {recent_data['Close'].iloc[-1]:.2f}") - pool = Pool(12) - pool.map(send_coin_msg, ["[KRW-COIN]" + "\n" + format_message('COIN', symbol, KR_COINS[symbol], recent_data['Close'].iloc[-1], recent_data['buy_signal'].iloc[-1])]) + try: + pool = Pool(12) + pool.map(send_coin_msg, ["[KRW-COIN]" + "\n" + format_message('COIN', symbol, KR_COINS[symbol], recent_data['Close'].iloc[-1], recent_data['buy_signal'].iloc[-1])]) + except Exception as e: + print(f"Error sending Telegram message: {str(e)}") # buy buy_success = buy_ticker(symbol, recent_data)