From ae9925f69cf37e78f030ec64624c26af7ada3f99 Mon Sep 17 00:00:00 2001 From: Oreo639 <31916379+Oreo639@users.noreply.github.com> Date: Fri, 19 Apr 2019 00:32:55 -0700 Subject: [PATCH] Show dderr value number if not in list --- cogs/err.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cogs/err.py b/cogs/err.py index a099783..11c878b 100644 --- a/cogs/err.py +++ b/cogs/err.py @@ -47,11 +47,11 @@ class Err(Cog): summ = (rc >> 21) & 0x3F level = (rc >> 27) & 0x1F embed = discord.Embed(title=f"0x{rc:X}") - embed.add_field(name="Module", value=dds_modules[mod]) + embed.add_field(name="Module", value=dds_modules.get(mod, mod)) embed.add_field(name="Description", - value=dds_descriptions[desc]) - embed.add_field(name="Summary", value=dds_summaries[summ]) - embed.add_field(name="Level", value=dds_levels[level]) + value=dds_descriptions.get(desc, desc)) + embed.add_field(name="Summary", value=dds_summaries.get(summ, summ)) + embed.add_field(name="Level", value=dds_levels.get(level, level)) embed.set_footer(text="Console: 3DS") await ctx.send(embed=embed)