瀏覽代碼

history 增加bot && history

luojunhui 7 月之前
父節點
當前提交
9efc4f4168
共有 1 個文件被更改,包括 15 次插入15 次删除
  1. 15 15
      historyTask.py

+ 15 - 15
historyTask.py

@@ -44,21 +44,21 @@ async def main():
                 "traceback": traceback.format_exc()
             }
         )
-        try:
-            history_content_id_task = historyContentIdTask(async_mysql_pool)
-        except Exception as e:
-            logging(
-                code="history0003",
-                info="Init historyContentIdTask failed",
-                alg="historyContentIdTask",
-                function="main",
-                data={
-                    "error": str(e),
-                    "traceback": traceback.format_exc()
-                }
-            )
-            return
-        await history_content_id_task.deal()
+    try:
+        history_content_id_task = historyContentIdTask(async_mysql_pool)
+    except Exception as e:
+        logging(
+            code="history0003",
+            info="Init historyContentIdTask failed",
+            alg="historyContentIdTask",
+            function="main",
+            data={
+                "error": str(e),
+                "traceback": traceback.format_exc()
+            }
+        )
+        return
+    await history_content_id_task.deal()
 
 
 if __name__ == '__main__':