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 b2b521f commit 253eafbCopy full SHA for 253eafb
2 files changed
lib/core/common.py
@@ -1541,6 +1541,7 @@ def extractErrorMessage(page):
1541
if isinstance(page, basestring):
1542
for regex in (r"<b>[^<]*(fatal|error|warning|exception)[^<]*</b>:?\s+(?P<result>.+?)<br\s*/?\s*>", r"<li>Error Type:<br>(?P<result>.+?)</li>"):
1543
match = re.search(regex, page, re.DOTALL | re.IGNORECASE)
1544
+
1545
if match:
1546
retVal = htmlunescape(match.group("result")).replace("<br>", "\n").strip()
1547
break
lib/request/connect.py
@@ -310,6 +310,7 @@ def getPage(**kwargs):
310
311
if conf.parseErrors:
312
msg = extractErrorMessage(page)
313
314
if msg:
315
logger.info("parsed error message: '%s'" % msg)
316
0 commit comments