From: david-sarah Date: Sat, 6 Aug 2011 22:10:07 +0000 (-0700) Subject: node.py: fix the error path for a missing config option so that it works for a Unicod... X-Git-Url: https://git.rkrishnan.org/simplejson/components/%22file:/configuration.rst?a=commitdiff_plain;h=1967233f49f2e8d0fd11b377e797d1ea34a1dcfb;p=tahoe-lafs%2Ftahoe-lafs.git node.py: fix the error path for a missing config option so that it works for a Unicode base directory. --- 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):