mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
fixed exception (#1372)
`requirements.remove` will raise a ValueError if the item is not there, not `IndexError`
This commit is contained in:
parent
cf48a13fc7
commit
ed5945e182
2
setup.py
2
setup.py
@ -25,7 +25,7 @@ def get_requirements():
|
|||||||
requirements = f.read().splitlines()
|
requirements = f.read().splitlines()
|
||||||
try:
|
try:
|
||||||
requirements.remove('git+https://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py[voice]')
|
requirements.remove('git+https://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py[voice]')
|
||||||
except IndexError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if IS_DEPLOYING or not IS_TRAVIS:
|
if IS_DEPLOYING or not IS_TRAVIS:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user