Patch for an Issue #968

This commit is contained in:
Miroslav Stampar
2014-11-24 10:13:56 +01:00
parent 2284535267
commit 2f744139fc
2 changed files with 10 additions and 4 deletions

View File

@@ -1930,7 +1930,7 @@ def getFileItems(filename, commentPrefix='#', unicode_=True, lowercase=False, un
retVal[line] = True
else:
retVal.append(line)
except (IOError, OSError), ex:
except (IOError, OSError, MemoryError), ex:
errMsg = "something went wrong while trying "
errMsg += "to read the content of file '%s' ('%s')" % (filename, ex)
raise SqlmapSystemException(errMsg)