mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 15:16:41 +00:00
node.py: fix the error path for a missing config option so that it works for a Unicode base directory.
This commit is contained in:
parent
531758df19
commit
1967233f49
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user