We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bd3bb8 commit f3a9dbeCopy full SHA for f3a9dbe
1 file changed
src/hyperbase/parsers/correctness.py
@@ -32,7 +32,7 @@ def _visit(current_edge: Hyperedge) -> None:
32
)
33
34
35
- except Exception:
+ except (IndexError, RuntimeError):
36
pass
37
38
# Junction checks
@@ -52,7 +52,7 @@ def _visit(current_edge: Hyperedge) -> None:
52
3,
53
54
55
56
57
58
if current_errors:
@@ -312,7 +312,7 @@ def count_unmatched_roots(root_value: str) -> int:
312
if len(token_matching_errors) > 0:
313
errors["token-matching"] = token_matching_errors
314
315
- except (AttributeError, Exception):
+ except (AttributeError, IndexError, RuntimeError):
316
# If token counting fails (e.g., edge is invalid), skip it
317
318
0 commit comments