From 42f79d8f267478e87955281e9e51c83af1362565 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 1 Apr 2019 07:50:19 +0100 Subject: [PATCH] .get eage-api-key and url in nr.service() to handle it not being present --- modules/nr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nr.py b/modules/nr.py index 1c88bc99..9982a0c4 100644 --- a/modules/nr.py +++ b/modules/nr.py @@ -315,8 +315,8 @@ class Module(ModuleManager.BaseModule): "S": "ship", "T": "trip", "1": "train", "2": "freight", "3": "trip", "4": "ship", "5": "bus"} - eagle_key = self.bot.config["eagle-api-key"] - eagle_url = self.bot.config["eagle-api-url"] + eagle_key = self.bot.config.get("eagle-api-key", None) + eagle_url = self.bot.config.get("eagle-api-url", None) schedule = {} sources = []