mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-24 23:26:43 +00:00
don't shadow the global
This commit is contained in:
parent
692285ada3
commit
25c98d7421
@ -137,12 +137,12 @@ class DaemonizeTheRealService(Service, HookMixin):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
raise ValueError("unknown nodetype %s" % self.nodetype)
|
raise ValueError("unknown nodetype %s" % self.nodetype)
|
||||||
|
|
||||||
def handle_config_error(fail):
|
def handle_config_error(reason):
|
||||||
if fail.check(UnknownConfigError):
|
if reason.check(UnknownConfigError):
|
||||||
self.stderr.write("\nConfiguration error:\n{}\n\n".format(fail.value))
|
self.stderr.write("\nConfiguration error:\n{}\n\n".format(reason.value))
|
||||||
else:
|
else:
|
||||||
self.stderr.write("\nUnknown error\n")
|
self.stderr.write("\nUnknown error\n")
|
||||||
fail.printTraceback(self.stderr)
|
reason.printTraceback(self.stderr)
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
|
|
||||||
d = service_factory()
|
d = service_factory()
|
||||||
|
Loading…
Reference in New Issue
Block a user