mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-05 20:33:10 +03:00
Minor bug fix for a traceback
This commit is contained in:
parent
1d5050d577
commit
aa8a20d241
|
@ -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 New Issue
Block a user