From ca46ab4ffddc3bdc4c122650c580c766ddadbefc Mon Sep 17 00:00:00 2001 From: Arinerron Date: Sat, 3 Mar 2018 17:11:21 -0800 Subject: [PATCH] Display btc error if any --- onionr/communicator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onionr/communicator.py b/onionr/communicator.py index b9339860..3e7b6400 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -38,7 +38,8 @@ class OnionrCommunicate: logger.info('Starting Bitcoin Node... with Tor socks port:' + str(sys.argv[2])) self.bitcoin = btc.OnionrBTC(torP=int(sys.argv[2])) logger.info('Bitcoin Node started, on block: ' + self.bitcoin.node.getBlockHash(self.bitcoin.node.getLastBlockHeight())) - except: + except Exception as e: + logger.error(str(e)) logger.fatal('Failed to start Bitcoin Node, exiting...') exit(1)