From 4831145c2977b0c64a4826a25562a18970edeb78 Mon Sep 17 00:00:00 2001 From: Toperlock <861705708@qq.com> Date: Sat, 8 Jun 2024 20:35:30 +0800 Subject: [PATCH] fix exception handling --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index f4287cfef..7abd97cf9 100644 --- a/main.py +++ b/main.py @@ -194,7 +194,10 @@ def parse_content(content): factory = get_parser(t) if not factory: continue - node = factory(t) + try: + node = factory(t) + except Exception as e: #节点解析失败,跳过 + pass if node: nodelist.append(node) return nodelist