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):