From c16b5559b82e999f408b6438a08b67a2a706d047 Mon Sep 17 00:00:00 2001 From: Cryp Toon Date: Mon, 9 Dec 2024 19:46:54 +0100 Subject: [PATCH] Remove too broad exception handler in clw, fix issue #423 --- bitcoinlib/tools/clw.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitcoinlib/tools/clw.py b/bitcoinlib/tools/clw.py index 78263455..7da1af9a 100644 --- a/bitcoinlib/tools/clw.py +++ b/bitcoinlib/tools/clw.py @@ -30,9 +30,6 @@ def exception_handler(exception_type, exception, traceback): print("%s: %s" % (exception_type.__name__, exception)) -sys.excepthook = exception_handler - - def parse_args(): parser = argparse.ArgumentParser(description='BitcoinLib command line wallet') parser.add_argument('--list-wallets', '-l', action='store_true', @@ -425,4 +422,5 @@ def main(): if __name__ == '__main__': + sys.excepthook = exception_handler main()