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