fix verbose arg for blockchain.transaction.get #30

Merged
jackrobison merged 3 commits from get-transaction-json into master 2022-05-03 00:07:02 +02:00
Showing only changes of commit a9a4f87628 - Show all commits

View file

@ -284,7 +284,10 @@ class Env:
return self.PD_ON
def extract_peer_hubs(self):
return [hub.strip() for hub in self.default('PEER_HUBS', '').split(',')]
peer_hubs = self.default('PEER_HUBS', '')
if not peer_hubs:
return []
return [hub.strip() for hub in peer_hubs.split(',')]
@classmethod
def contribute_to_arg_parser(cls, parser):