Skip to content

Commit

Permalink
Fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Luois45 committed Dec 31, 2021
1 parent 426330d commit 48b1d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions discord-shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def check(m):
check=check)
try:
new_item_image = item_image_message.attachments[0].url
except:
except IndexError:
new_item_image = item_image_message.content
if str(new_item_image) == ".":
item_image = new_item_image
Expand Down Expand Up @@ -906,7 +906,7 @@ def check(m):
item_image_message = await client.wait_for('message', check=check)
try:
item_image = item_image_message.attachments[0].url
except:
except IndexError:
item_image = item_image_message.content
if str(item_image) == ".":
break
Expand Down

0 comments on commit 48b1d6e

Please sign in to comment.