code refactoring

This commit is contained in:
Bernardo Damele
2013-01-14 10:22:38 +00:00
parent 4acb281414
commit 8125fe90a7
3 changed files with 25 additions and 42 deletions

View File

@@ -27,7 +27,7 @@ from lib.core.data import kb
from lib.core.data import logger
from lib.core.data import paths
from lib.core.common import unhandledExceptionMessage
from lib.core.exception import exceptionsTuple
from lib.core.exception import SqlmapBaseException
from lib.core.exception import SqlmapSilentQuitException
from lib.core.exception import SqlmapUserQuitException
from lib.core.option import init
@@ -79,7 +79,7 @@ def main():
except (SqlmapSilentQuitException, bdb.BdbQuit):
pass
except exceptionsTuple, e:
except SqlmapBaseException, e:
e = getUnicode(e)
logger.critical(e)
sys.exit(1)