Merge branch 'master' of git://git.assembla.com/fpdb-eric

This commit is contained in:
Eratosthenes 2010-01-29 12:06:44 -05:00
commit 1aa68a9075

View File

@ -42,6 +42,8 @@ def to_utf8(s):
except UnicodeDecodeError: except UnicodeDecodeError:
sys.stderr.write('Could not convert: "%s"\n' % s) sys.stderr.write('Could not convert: "%s"\n' % s)
raise raise
except TypeError: # TypeError is raised when we give unicode() an already encoded string
return s
def to_db_utf8(s): def to_db_utf8(s):
if not_needed: return s if not_needed: return s
@ -62,4 +64,3 @@ def to_gui(s):
except UnicodeDecodeError: except UnicodeDecodeError:
sys.stderr.write('Could not convert: "%s"\n' % s) sys.stderr.write('Could not convert: "%s"\n' % s)
raise raise