Skip to content

Commit ebaee3a

Browse files
committed
Minor patch for #5255
1 parent 33a6547 commit ebaee3a

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/core/common.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,10 @@ def dataToStdout(data, forceOutput=False, bold=False, contentType=None, status=C
10341034
except UnicodeEncodeError:
10351035
sys.stdout.write(re.sub(r"[^ -~]", '?', clearColors(data)))
10361036
finally:
1037-
sys.stdout.flush()
1037+
try:
1038+
sys.stdout.flush()
1039+
except IOError:
1040+
raise SystemExit
10381041

10391042
if multiThreadMode:
10401043
logging._releaseLock()

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.12.0"
23+
VERSION = "1.6.12.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

sqlmap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,10 @@ def main():
250250
raise SystemExit
251251

252252
except KeyboardInterrupt:
253-
print()
253+
try:
254+
print()
255+
except IOError:
256+
pass
254257

255258
except EOFError:
256259
print()

0 commit comments

Comments
 (0)