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 5cedcac commit a38b0f8Copy full SHA for a38b0f8
source/openpulse/openpulse/parser.py
@@ -87,11 +87,11 @@ def parse_openpulse(
87
try:
88
tree = parser.calibrationBlock()
89
except (RecognitionException, ParseCancellationException) as exc:
90
- msg = ''
+ msg = ""
91
# With BailErrorStrategy, we should be able to recover and report
92
# information about the offending token.
93
if isinstance(exc, ParseCancellationException) and exc.args:
94
- tok = getattr(exc.args[0], 'offendingToken', None)
+ tok = getattr(exc.args[0], "offendingToken", None)
95
if tok is not None:
96
msg = f"Unexpected token '{tok.text}' at line {tok.line}, column {tok.start}."
97
raise OpenPulseParsingError(msg) from exc
0 commit comments