mirror of
https://github.com/tanrax/RSSingle.git
synced 2024-11-22 11:25:41 +01:00
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:
parent
1460f92f02
commit
3347b233de
15
rssingle.py
15
rssingle.py
@ -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
|
||||||
|
|
||||||
@ -201,20 +200,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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user