From d6a13d6edf8f94d2dd3abf3acbcf5d568ed453f1 Mon Sep 17 00:00:00 2001 From: msincenselee Date: Mon, 4 Mar 2019 22:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E9=80=81=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/trader/vtEngine.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vnpy/trader/vtEngine.py b/vnpy/trader/vtEngine.py index bc8033b0..5451685f 100644 --- a/vnpy/trader/vtEngine.py +++ b/vnpy/trader/vtEngine.py @@ -473,6 +473,8 @@ class MainEngine(object): # 发出邮件 try: sendmail(subject=u'{0} Critical'.format('_'.join(self.connected_gw_names)), msgcontent=content) + from vnpy.trader.util_wx_ft import sendWxMsg + sendWxMsg(text=content,desp='Critical error') except: pass @@ -485,6 +487,7 @@ class MainEngine(object): # sendWeChatMsg(content, target=target, level=WECHAT_LEVEL_FATAL) #except: # pass + # # ---------------------------------------------------------------------- def dbConnect(self):