Minor patch for --parse-errors logic

This commit is contained in:
Miroslav Štampar 2026-06-04 21:06:07 +02:00
parent b3f3405775
commit 8d91c65bdb
3 changed files with 4 additions and 6 deletions

View file

@ -2884,9 +2884,6 @@ def extractErrorMessage(page):
retVal = None
if isinstance(page, six.string_types):
if wasLastResponseDBMSError():
page = re.sub(r"<[^>]+>", "", page)
for regex in ERROR_PARSING_REGEXES:
match = re.search(regex, page, re.IGNORECASE)
@ -2897,6 +2894,7 @@ def extractErrorMessage(page):
break
if not retVal and wasLastResponseDBMSError():
page = re.sub(r"<[^>]+>", "", page)
match = re.search(r"[^\n]*SQL[^\n:]*:[^\n]*", page, re.IGNORECASE)
if match: