Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 48619d9

Browse files
committed
Fixes #1464
1 parent b9a4455 commit 48619d9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

sqlmap.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def main():
7777
errMsg = "your system does not properly handle non-ASCII paths. "
7878
errMsg += "Please move the sqlmap's directory to the other location"
7979
logger.error(errMsg)
80-
exit()
80+
raise SystemExit
8181

8282
setPaths()
8383

@@ -122,7 +122,7 @@ def main():
122122
except SqlmapBaseException as ex:
123123
errMsg = getSafeExString(ex)
124124
logger.critical(errMsg)
125-
sys.exit(1)
125+
raise SystemExit
126126

127127
except KeyboardInterrupt:
128128
print
@@ -142,6 +142,11 @@ def main():
142142
errMsg = unhandledExceptionMessage()
143143
excMsg = traceback.format_exc()
144144

145+
if "No space left" in excMsg:
146+
errMsg = "no space left on output device"
147+
logger.error(errMsg)
148+
raise SystemExit
149+
145150
for match in re.finditer(r'File "(.+?)", line', excMsg):
146151
file_ = match.group(1)
147152
file_ = os.path.relpath(file_, os.path.dirname(__file__))

0 commit comments

Comments
 (0)