summaryrefslogtreecommitdiff
path: root/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.py b/src/main.py
index 4e1bab3..20b81f6 100644
--- a/src/main.py
+++ b/src/main.py
@@ -274,21 +274,21 @@ def fetch_scores(pbn, db, settings):
def main_loop():
+ settings = {}
try:
config = get_config()
setup_logging(config)
+ settings = config.get('settings', {})
db = TeamyDB(config.get('mysql'))
pbn = get_pbn_source(config.get('source'))
- settings = config.get('settings', {})
if settings.get('fetch_lineups', 0) > 0:
fetch_lineups(pbn, db, settings)
fetch_scores(pbn, db, settings)
except Exception as ex:
logging.error(ex)
- raise
return settings.get('job_interval', 60)