Don't fail when eagle api url/key are not present

This commit is contained in:
jesopo 2019-03-11 09:42:34 +00:00
parent b995d9f954
commit 695327c2e8

View file

@ -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()