Procházet zdrojové kódy

history 增加bot && history

luojunhui před 7 měsíci
rodič
revize
9efc4f4168
1 změnil soubory, kde provedl 15 přidání a 15 odebrání
  1. 15 15
      historyTask.py

+ 15 - 15
historyTask.py

@@ -44,21 +44,21 @@ async def main():
                 "traceback": traceback.format_exc()
                 "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__':
 if __name__ == '__main__':