From 3cfa40a6ef2802a07340797e4fab2ecafeb3da80 Mon Sep 17 00:00:00 2001 From: "vn.py" Date: Fri, 27 Apr 2018 15:56:43 +0800 Subject: [PATCH] [Fix]Close #832 --- vnpy/trader/app/dataRecorder/drEngine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vnpy/trader/app/dataRecorder/drEngine.py b/vnpy/trader/app/dataRecorder/drEngine.py index 21f8d7c5..5b29f3dd 100644 --- a/vnpy/trader/app/dataRecorder/drEngine.py +++ b/vnpy/trader/app/dataRecorder/drEngine.py @@ -246,7 +246,7 @@ class DrEngine(object): try: self.mainEngine.dbInsert(dbName, collectionName, d) except DuplicateKeyError: - self.writeDrLog(u'键值重复插入失败,报错信息:' %traceback.format_exc()) + self.writeDrLog(u'键值重复插入失败,报错信息:%s' %traceback.format_exc()) except Empty: pass