Browse Source

(modify):忽略非监控

windowdog 2 months ago
parent
commit
069ae7b0d9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/code/telegram_get_gmgnalertbot_sol.py

+ 4 - 0
src/code/telegram_get_gmgnalertbot_sol.py

@@ -343,7 +343,11 @@ async def handle_incoming_GMGN_bot_NewMessage(event):
         return
         return
     swap_buttons = sum(swap_buttons, [])
     swap_buttons = sum(swap_buttons, [])
     button_chart_line = swap_buttons[0]
     button_chart_line = swap_buttons[0]
+   
     url_chart_line = button_chart_line.url
     url_chart_line = button_chart_line.url
+    if url_chart_line is None:
+        print("url_chart_line is Nnoe")
+        return
  
  
     arr_url_chart_line = url_chart_line.split("?wallet=")
     arr_url_chart_line = url_chart_line.split("?wallet=")
     str_dalaoaddress = arr_url_chart_line[-1]
     str_dalaoaddress = arr_url_chart_line[-1]