avoid [''] on peers list

This commit is contained in:
Victor Shyba 2021-09-13 15:57:21 -03:00
parent d09bfdc4ff
commit c2dcc4c898

View file

@ -273,4 +273,4 @@ class Env:
return self.PD_ON
def extract_peer_hubs(self):
return [hub.strip() for hub in self.default('PEER_HUBS', '').split(',')]
return [hub.strip() for hub in self.default('PEER_HUBS', '').split(',') if hub.strip()]