Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from zainniazi/member-bug-fix
Browse files Browse the repository at this point in the history
Member not available condition fixes
  • Loading branch information
222ryan authored May 4, 2022
2 parents 9f3b829 + 702fc92 commit 3263609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KumosLab/Database/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async def xp(user: discord.Member = None, guild: discord.Guild = None):
try:
if config['Database_Type'].lower() == "mongodb":
member = levelling.find_one({'user_id': user.id, 'guild_id': guild.id})
if user is None:
if member is None:
return "User Not Found!"
return member['xp']
elif config['Database_Type'].lower() == "local":
Expand Down

0 comments on commit 3263609

Please sign in to comment.