Skip to content

Commit b9198ea

Browse files
author
brandons209
committed
small bugfix in userinfo for unknown badge emojis
1 parent 982ed4f commit b9198ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

activitylog/activitylog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
class ActivityLogger(commands.Cog):
4545
"""Log all activities seen by bot"""
4646

47+
__version__ = "1.1.0"
48+
4749
def __init__(self, bot):
4850
super().__init__()
4951
self.data_path = cog_data_path(cog_instance=self)
@@ -1169,7 +1171,7 @@ async def userinfo(self, ctx: commands.Context, *, member: Optional[discord.Memb
11691171
else:
11701172
emoji = None
11711173
else:
1172-
emoji = self.badge_emojis[badge]
1174+
emoji = self.badge_emojis.get(badge, None)
11731175
if emoji:
11741176
badges += f"{emoji} {badge.replace('_', ' ').title()}\n"
11751177
else:

0 commit comments

Comments
 (0)