Merge pull request #7 from shymega/shymega/prs/remove-unused-var

Remove unused variables, and duplicate assignments
This commit is contained in:
Andros Fenollosa 2023-07-06 11:36:48 +02:00 committed by GitHub
commit 846de90642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,6 @@ CONFIG_PATH = "config.yml"
LOG_LEVEL = environ.get("SR_LOG_LEVEl", "ERROR") LOG_LEVEL = environ.get("SR_LOG_LEVEl", "ERROR")
fg = None fg = None
FEED_OUT_PATH = None FEED_OUT_PATH = None
FEED_LIST_PATH = None
FEEDS = [] FEEDS = []
CFG = None CFG = None
@ -200,20 +199,6 @@ if __name__ == "__main__":
log.error("This program will NOT run without that set.") log.error("This program will NOT run without that set.")
sys.exit(1) 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() init_feed()
log.debug("Begin processing feeds...") log.debug("Begin processing feeds...")