Fixed coding error when looking at issue 4034.

svn: r15535
This commit is contained in:
Peter Landgren 2010-06-06 17:18:48 +00:00
parent 69df521213
commit 308d9e2142

View File

@ -330,7 +330,8 @@ def make_dbdir(dbdir):
if not os.path.isdir(dbdir): if not os.path.isdir(dbdir):
os.makedirs(dbdir) os.makedirs(dbdir)
except (IOError, OSError), msg: 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): def find_next_db_name(name_list):
""" """