From c0f0076a3ea40be1619ae8b57f59637b763bbffc Mon Sep 17 00:00:00 2001 From: meejah <meejah@meejah.ca> Date: Tue, 5 Jan 2021 00:00:13 -0700 Subject: [PATCH] undo --- src/allmydata/scripts/runner.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/allmydata/scripts/runner.py b/src/allmydata/scripts/runner.py index 30b29f68e..f57397f74 100644 --- a/src/allmydata/scripts/runner.py +++ b/src/allmydata/scripts/runner.py @@ -162,13 +162,7 @@ def dispatch(config, # 4: return a Deferred that does 1 or 2 or 3 def _raise_sys_exit(rc): sys.exit(rc) - - def _error(f): - f.trap(usage.UsageError) - print("Error: {}".format(f.value.message)) - sys.exit(1) d.addCallback(_raise_sys_exit) - d.addErrback(_error) return d def _maybe_enable_eliot_logging(options, reactor):