Don't fail when eagle api url/key are not present
This commit is contained in:
parent
b995d9f954
commit
695327c2e8
1 changed files with 2 additions and 2 deletions
|
@ -125,8 +125,8 @@ class Module(ModuleManager.BaseModule):
|
|||
client = self.client
|
||||
colours = self.COLOURS
|
||||
|
||||
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 = {}
|
||||
|
||||
location_code = event["args_split"][0].upper()
|
||||
|
|
Loading…
Reference in a new issue