Don't load current map if it doesn't exist

This commit is contained in:
bobloy 2020-08-12 10:58:51 -04:00
parent 3b156d8275
commit 8012a20ddb

View File

@ -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"