fix peer list

This commit is contained in:
Jack Robison 2022-05-02 17:58:15 -04:00
parent 4e8c8d4054
commit a9a4f87628
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -284,7 +284,10 @@ class Env:
return self.PD_ON return self.PD_ON
def extract_peer_hubs(self): 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 @classmethod
def contribute_to_arg_parser(cls, parser): def contribute_to_arg_parser(cls, parser):