mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-05-06 16:53:44 +03:00
minor fix for a bug reported by shaohua pan (argument of type 'NoneType' is not iterable)
This commit is contained in:
parent
51a492e17d
commit
68462466f2
|
@ -1117,8 +1117,12 @@ class Enumeration:
|
|||
|
||||
if conf.col:
|
||||
colList = conf.col.split(",")
|
||||
else:
|
||||
elif kb.data.cachedColumns and conf.db in kb.data.cachedColumns and conf.tbl in kb.data.cachedColumns[conf.db]:
|
||||
colList = kb.data.cachedColumns[conf.db][conf.tbl].keys()
|
||||
else:
|
||||
errMsg = "missing column names, "
|
||||
errMsg += "can't dump table"
|
||||
raise sqlmapNoneDataException, errMsg
|
||||
|
||||
if colList in ([None], ['None']):
|
||||
warnMsg = "unable to retrieve column names"
|
||||
|
|
Loading…
Reference in New Issue
Block a user