Fixed coding error when looking at issue 4034.

svn: r15534
This commit is contained in:
Peter Landgren 2010-06-06 17:15:53 +00:00
parent 10bd447ed5
commit e3f9f97864

View File

@ -331,7 +331,8 @@ def make_dbdir(dbdir):
if not os.path.isdir(dbdir):
os.makedirs(dbdir)
except (IOError, OSError), msg:
LOG.error(_("Could not make database directory: ") + str(msg))
msg = unicode(str(msg), sys.getfilesystemencoding())
LOG.error(_("Could not make database directory: ") + msg)
def find_next_db_name(name_list):
"""