minor update

This commit is contained in:
Miroslav Stampar
2010-11-16 10:52:49 +00:00
parent 6ef3846400
commit 6232397129
2 changed files with 8 additions and 7 deletions

View File

@@ -220,9 +220,10 @@ class Connect:
responseHeaders = conn.info()
page = decodePage(page, responseHeaders.get("Content-Encoding"), responseHeaders.get("Content-Type"))
msg = extractErrorMessage(page)
if msg and conf.parseErrors:
logger.error("error message: '%s'" % msg)
if conf.parseErrors:
msg = extractErrorMessage(page)
if msg:
logger.info("parsed error message: '%s'" % msg)
except urllib2.HTTPError, e:
code = e.code