mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 03:23:48 +03:00
minor fix
This commit is contained in:
parent
05b9951a8b
commit
566d6e4974
|
@ -2594,7 +2594,7 @@ def openFile(filename, mode='r'):
|
|||
"""
|
||||
|
||||
try:
|
||||
return codecs.open(filename, mode, UNICODE_ENCODING)
|
||||
return codecs.open(filename, mode, UNICODE_ENCODING, errors="replace")
|
||||
except IOError:
|
||||
errMsg = "there has been a file opening error for filename '%s'. " % filename
|
||||
errMsg += "Please check %s permissions on a file " % ("write" if \
|
||||
|
|
Loading…
Reference in New Issue
Block a user