.get eage-api-key and url in nr.service() to handle it not being present

This commit is contained in:
jesopo 2019-04-01 07:50:19 +01:00
parent c697c58b52
commit 42f79d8f26

View file

@ -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 = []