Skip to content

Commit 9255174

Browse files
committed
Minor fix
1 parent 5c4e4d1 commit 9255174

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1992,7 +1992,7 @@ def getUnicode(value, encoding=None, system=False, noneToNull=False):
19921992
try:
19931993
return unicode(value, encoding or kb.get("pageEncoding") or UNICODE_ENCODING)
19941994
except UnicodeDecodeError, ex:
1995-
value = value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
1995+
return value[:ex.start] + "".join(INVALID_UNICODE_CHAR_FORMAT % ord(_) for _ in value[ex.start:ex.end]) + value[ex.end:]
19961996
else:
19971997
return unicode(value) # encoding ignored for non-basestring instances
19981998
else:

0 commit comments

Comments
 (0)