You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consistent use of ValueError when parsing settings. NFC (#21245)
This is in preparation for a change to avoid using json parsing for
settings by default.
It also adds more context to the errors since when the ValueError
is caught higher up we print nice error messages.
asserttext[-1] ==text[0] andlen(text) >1, 'unclosed opened quoted string. expected final character to be "%s" and length to be greater than 1 in "%s"'% (text[0], text)
1460
+
iftext[-1] !=text[0] orlen(text) <2:
1461
+
raiseValueError(f'unclosed quoted string. expected final character to be "{text[0]}" and length to be greater than 1 in "{text[0]}"')
0 commit comments