mirror of
https://github.com/tanrax/RSSingle.git
synced 2024-11-10 04:25:42 +01:00
Merge pull request #7 from shymega/shymega/prs/remove-unused-var
Remove unused variables, and duplicate assignments
This commit is contained in:
commit
846de90642
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
|
||||||
|
|
||||||
@ -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...")
|
||||||
|
Loading…
Reference in New Issue
Block a user