mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-15 18:52:31 +03:00
minor "patch"
This commit is contained in:
parent
c20546dcaa
commit
366e86c560
|
@ -14,6 +14,7 @@ import httplib
|
||||||
import inspect
|
import inspect
|
||||||
import logging
|
import logging
|
||||||
import ntpath
|
import ntpath
|
||||||
|
import optparse
|
||||||
import os
|
import os
|
||||||
import pickle
|
import pickle
|
||||||
import posixpath
|
import posixpath
|
||||||
|
@ -35,6 +36,7 @@ from ConfigParser import RawConfigParser
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
from difflib import SequenceMatcher
|
from difflib import SequenceMatcher
|
||||||
from math import sqrt
|
from math import sqrt
|
||||||
|
from optparse import OptionValueError
|
||||||
from subprocess import PIPE
|
from subprocess import PIPE
|
||||||
from subprocess import Popen as execute
|
from subprocess import Popen as execute
|
||||||
from tempfile import NamedTemporaryFile
|
from tempfile import NamedTemporaryFile
|
||||||
|
@ -2940,7 +2942,10 @@ def expandMnemonics(mnemonics, parser, args):
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
if found:
|
if found:
|
||||||
|
try:
|
||||||
value = found.convert_value(found, value)
|
value = found.convert_value(found, value)
|
||||||
|
except OptionValueError:
|
||||||
|
value = None
|
||||||
|
|
||||||
if value is not None:
|
if value is not None:
|
||||||
setattr(args, found.dest, value)
|
setattr(args, found.dest, value)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user