Fix typo in exception name (SGMLParserError should be SGMLParseError)
found by Neil Norwitz's PyChecker.
This commit is contained in:
parent
815bee4cf4
commit
74cde5bb3e
|
@ -175,7 +175,7 @@ class SGMLParser:
|
|||
if rawdata[i-1] != ';': i = i-1
|
||||
continue
|
||||
else:
|
||||
raise SGMLParserError('neither < nor & ??')
|
||||
raise SGMLParseError('neither < nor & ??')
|
||||
# We get here only if incomplete matches but
|
||||
# nothing else
|
||||
match = incomplete.match(rawdata, i)
|
||||
|
|
Loading…
Reference in New Issue