minor fix

This commit is contained in:
Miroslav Stampar 2011-10-21 20:21:29 +00:00
parent 05b9951a8b
commit 566d6e4974

View File

@ -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 \