]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: fix the error path for a missing config option so that it works for a Unicod...
authordavid-sarah <david-sarah@jacaranda.org>
Sat, 6 Aug 2011 22:10:07 +0000 (15:10 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Sat, 6 Aug 2011 22:10:07 +0000 (15:10 -0700)
src/allmydata/node.py

index f73239f268b6ee9481ee1ff35d9382e20caab6dc..793729b51fe3dfa93bc5212a365344b571dce375 100644 (file)
@@ -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):