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 <shymega@shymega.org.uk>
This commit is contained in:
Dom Rodriguez 2022-09-13 19:28:09 +01:00
parent 1460f92f02
commit 3347b233de
No known key found for this signature in database
GPG Key ID: 72DCF1231E54BD43

View File

@ -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...")