From 45bb623f86c3e0c363fb472ef29ae5f7929478f2 Mon Sep 17 00:00:00 2001 From: Christoph Miksche Date: Sun, 29 Nov 2020 16:47:14 +0000 Subject: [PATCH] fix issue when only uri_list and no uri is configured Fixes #58 --- feed2toot/confparse.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feed2toot/confparse.py b/feed2toot/confparse.py index efc1dfb..3ad42b7 100644 --- a/feed2toot/confparse.py +++ b/feed2toot/confparse.py @@ -94,7 +94,11 @@ class ConfParse: ############ # uri option ############ - options['rss_uri'], feed, feedname, options['nopatternurinoglobalpattern'] = parseuri(config, self.clioptions.rss_uri, feeds, ignore_ssl) + if config.has_option('rss', 'uri') or self.clioptions.rss_uri: + options['rss_uri'], feed, feedname, options['nopatternurinoglobalpattern'] = parseuri(config, self.clioptions.rss_uri, feeds, ignore_ssl) + else: + if config.has_option('rss', 'no_uri_pattern_no_global_pattern'): + options['nopatternurinoglobalpattern'] = config.getboolean('rss', 'no_uri_pattern_no_global_pattern') ########################### # the cache section ###########################