rayzchen / pyeod

An implementation of CaryKH's elemental 3 in python for a discord bot
https://discord.gg/pvvZe7Pu8r
MIT License
3 stars 2 forks source link

Trying to view elements after a certain time results in error message #85

Closed kylepokorski closed 5 months ago

kylepokorski commented 5 months ago

Instead of getting element info for these elements you get an error message. Seems similar to #78 except that an error message pops up instead of nothing.

kylepokorski commented 5 months ago

It looks like this Traceback (most recent call last): File "C:\\pyeod\cogs\game\base.py", line 226, in inner await func(self, msg) File "C:\\pyeod\cogs\game\base.py", line 249, in message_handler await self.show_element_info(server, msg) File "C:\\pyeod\cogs\game\base.py", line 51, in show_element_info embed = await build_info_embed(server, element, user) File "C:\\pyeod\frontend\utils.py", line 122, in build_info_embed categories = sorted(instance.db.category_lookup[element.id]) KeyError: 10977

Cheesy-Brik commented 5 months ago

Fixed (hopefully)