Skip to content

Commit

Permalink
fix exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Jun 8, 2024
1 parent 3602dfd commit 4831145
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4831145

Please sign in to comment.