From a9a4f87628d1a9ce3bfc6a9b37141d373646ed86 Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Mon, 2 May 2022 17:58:15 -0400 Subject: [PATCH] fix peer list --- scribe/env.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scribe/env.py b/scribe/env.py index b6dc305..055cda2 100644 --- a/scribe/env.py +++ b/scribe/env.py @@ -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):