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

Skip to content

Commit 24e3b6a

Browse files
committed
Fixes #4801
1 parent f322306 commit 24e3b6a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

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.5.9.5"
23+
VERSION = "1.5.9.6"
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)

lib/core/subprocessng.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def send(self, input):
9999
(_, written) = WriteFile(x, input)
100100
except ValueError:
101101
return self._close('stdin')
102-
except (subprocess.pywintypes.error, Exception) as ex:
103-
if ex.args[0] in (109, errno.ESHUTDOWN):
102+
except Exception as ex:
103+
if getattr(ex, "args", None) and ex.args[0] in (109, errno.ESHUTDOWN):
104104
return self._close('stdin')
105105
raise
106106

@@ -120,8 +120,8 @@ def _recv(self, which, maxsize):
120120
(_, read) = ReadFile(x, nAvail, None)
121121
except (ValueError, NameError):
122122
return self._close(which)
123-
except (subprocess.pywintypes.error, Exception) as ex:
124-
if ex.args[0] in (109, errno.ESHUTDOWN):
123+
except Exception as ex:
124+
if getattr(ex, "args", None) and ex.args[0] in (109, errno.ESHUTDOWN):
125125
return self._close(which)
126126
raise
127127

0 commit comments

Comments
 (0)