From: W. Trevor King Date: Thu, 4 Oct 2012 16:54:34 +0000 (-0400) Subject: Only load configfiles if we have filenames to work with. X-Git-Tag: v3.0~72^2~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=afc3a0b2c6fe633bd91a5178a3bf74684432a4dc;p=rss2email.git Only load configfiles if we have filenames to work with. --- diff --git a/rss2email.py b/rss2email.py index b4125b8..7cd1237 100755 --- a/rss2email.py +++ b/rss2email.py @@ -890,7 +890,10 @@ class Feeds (list): self.pop(0) def load(self, lock=True): - self.read_configfiles = self.config.read(self.configfiles) + if self.configfiles: + self.read_configfiles = self.config.read(self.configfiles) + else: + self.read_configfiles = [] self._load_feeds(lock=lock) def _load_feeds(self, lock):