Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac7793 commit aabebdeCopy full SHA for aabebde
1 file changed
Tools/clinic/clinic.py
@@ -21,6 +21,7 @@
21
import sys
22
import tempfile
23
import textwrap
24
+import traceback
25
26
# TODO:
27
#
@@ -1082,7 +1083,11 @@ def parse(self, input):
1082
1083
assert dsl_name in parsers, "No parser to handle {!r} block.".format(dsl_name)
1084
self.parsers[dsl_name] = parsers[dsl_name](self)
1085
parser = self.parsers[dsl_name]
- parser.parse(block)
1086
+ try:
1087
+ parser.parse(block)
1088
+ except Exception:
1089
+ fail('Exception raised during parsing:\n' +
1090
+ traceback.format_exc().rstrip())
1091
printer.print_block(block)
1092
return printer.f.getvalue()
1093
0 commit comments