From 8012a20ddbfec9fe0a87c83df8c1094d5b5422ea Mon Sep 17 00:00:00 2001 From: bobloy Date: Wed, 12 Aug 2020 10:58:51 -0400 Subject: [PATCH] Don't load current map if it doesn't exist --- conquest/conquest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/conquest/conquest.py b/conquest/conquest.py index 70425aa..fb8b280 100644 --- a/conquest/conquest.py +++ b/conquest/conquest.py @@ -52,7 +52,8 @@ class Conquest(commands.Cog): self.asset_path = bundled_data_path(self) / "assets" self.current_map = await self.config.current_map() - await self.current_map_load() + if self.current_map: + await self.current_map_load() async def current_map_load(self): map_data_path = self.asset_path / self.current_map / "data.json"