.get eage-api-key and url in nr.service() to handle it not being present
This commit is contained in:
parent
c697c58b52
commit
42f79d8f26
1 changed files with 2 additions and 2 deletions
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue