File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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__ ))
You can’t perform that action at this time.
0 commit comments