Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Fix issue with previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LyricLy committed Dec 7, 2017
1 parent ceb9a1c commit d51321d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/emoji.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def add(self, ctx, name, url):
response = requests.get(url)
except (requests.exceptions.MissingSchema, requests.exceptions.InvalidURL, requests.exceptions.InvalidSchema, requests.exceptions.ConnectionError):
return await ctx.send(self.bot.bot_prefix + "The URL you have provided is invalid.")
elif response.status_code == 404:
if response.status_code == 404:
return await ctx.send(self.bot.bot_prefix + "The URL you have provided leads to a 404.")
try:
emoji = await ctx.guild.create_custom_emoji(name=name, image=response.content)
Expand Down

0 comments on commit d51321d

Please sign in to comment.