From 3347b233de4a5cdd5fe00c7ba0be2bf639de07dd Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Tue, 13 Sep 2022 19:28:09 +0100 Subject: [PATCH] Remove unused variables, and duplicate assignments This commit removes an unused variable, and the duplicate assignments in the main entrypoint. Signed-off-by: Dom Rodriguez --- rssingle.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/rssingle.py b/rssingle.py index f1862bd..27fbbd7 100755 --- a/rssingle.py +++ b/rssingle.py @@ -22,7 +22,6 @@ CONFIG_PATH = "config.yml" LOG_LEVEL = environ.get("SR_LOG_LEVEl", "ERROR") fg = None FEED_OUT_PATH = None -FEED_LIST_PATH = None FEEDS = [] CFG = None @@ -201,20 +200,6 @@ if __name__ == "__main__": log.error("This program will NOT run without that set.") sys.exit(1) - try: - FEED_LIST_PATH = CONFIG["url"] - except: - log.error("*** Configure variable missing! ***") - log.error("`url` variable missing.") - sys.exit(1) - - try: - FEED_LIST_PATH = CONFIG["feeds"] - except: - log.error("*** Configure variable missing! ***") - log.error("`feeds` variable missing.") - sys.exit(1) - init_feed() log.debug("Begin processing feeds...")