Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 253eafb

Browse files
committed
paranoid cosmetics
1 parent b2b521f commit 253eafb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,6 +1541,7 @@ def extractErrorMessage(page):
15411541
if isinstance(page, basestring):
15421542
for regex in (r"<b>[^<]*(fatal|error|warning|exception)[^<]*</b>:?\s+(?P<result>.+?)<br\s*/?\s*>", r"<li>Error Type:<br>(?P<result>.+?)</li>"):
15431543
match = re.search(regex, page, re.DOTALL | re.IGNORECASE)
1544+
15441545
if match:
15451546
retVal = htmlunescape(match.group("result")).replace("<br>", "\n").strip()
15461547
break

lib/request/connect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ def getPage(**kwargs):
310310

311311
if conf.parseErrors:
312312
msg = extractErrorMessage(page)
313+
313314
if msg:
314315
logger.info("parsed error message: '%s'" % msg)
315316

0 commit comments

Comments
 (0)