Skip to content

Commit

Permalink
added error message when trying to idolize a card that does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
DamourYouKnow committed Nov 30, 2018
1 parent 05f80b8 commit f1df48f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions commands/album_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ async def idolize(self, ctx, *args: str):
image = None
card = await self.bot.db.users.get_card_from_album(user.id, card_id)

if not card:
await self.__send_error_msg(
ctx, 'This card does not exist in your album.')
return

# Check to make sure the card can actually be idolized.
round_img = card['round_card_image']
round_card_i_img = card['round_card_idolized_image']
Expand Down
1 change: 0 additions & 1 deletion data_controller/feedback_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ async def add_feedback(self, user_id, username, message):
"""
Insert a new feedback into the database.
"""
print('hrlo')
feedback = {
'user_id': user_id,
'username': username,
Expand Down

0 comments on commit f1df48f

Please sign in to comment.