mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 16:32:23 +01:00
Minor bug fix for a traceback
This commit is contained in:
parent
1d5050d577
commit
aa8a20d241
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ class _baseDes(object):
|
||||||
# there is no way to correctly decode the data into bytes.
|
# there is no way to correctly decode the data into bytes.
|
||||||
if _pythonMajorVersion < 3:
|
if _pythonMajorVersion < 3:
|
||||||
if isinstance(data, unicode):
|
if isinstance(data, unicode):
|
||||||
raise ValueError("pyDes can only work with bytes, not Unicode strings.")
|
data = str(data)
|
||||||
else:
|
else:
|
||||||
if isinstance(data, str):
|
if isinstance(data, str):
|
||||||
# Only accept ascii unicode values.
|
# Only accept ascii unicode values.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue