Minor improvement

This commit is contained in:
Miroslav Stampar
2014-12-03 13:22:55 +01:00
parent aa95a05477
commit d3060f20d7
2 changed files with 3 additions and 2 deletions

View File

@@ -476,8 +476,9 @@ class Connect(object):
page = page if isinstance(page, unicode) else getUnicode(page)
code = e.code
threadData.lastHTTPError = (threadData.lastRequestUID, code)
kb.originalCode = kb.originalCode or code
threadData.lastHTTPError = (threadData.lastRequestUID, code)
kb.httpErrorCodes[code] = kb.httpErrorCodes.get(code, 0) + 1
status = getUnicode(e.msg)