From 1967233f49f2e8d0fd11b377e797d1ea34a1dcfb Mon Sep 17 00:00:00 2001 From: david-sarah Date: Sat, 6 Aug 2011 15:10:07 -0700 Subject: [PATCH] node.py: fix the error path for a missing config option so that it works for a Unicode base directory. --- src/allmydata/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/allmydata/node.py b/src/allmydata/node.py index f73239f2..793729b5 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -105,9 +105,9 @@ class Node(service.MultiService): return self.config.get(section, option) except (ConfigParser.NoOptionError, ConfigParser.NoSectionError): if default is _None: - fn = os.path.join(self.basedir, "tahoe.cfg") + fn = os.path.join(self.basedir, u"tahoe.cfg") raise MissingConfigEntry("%s is missing the [%s]%s entry" - % (fn, section, option)) + % (quote_output(fn), section, option)) return default def set_config(self, section, option, value): -- 2.45.2