fixed exception (#1372)

`requirements.remove` will raise a ValueError if the item is not there, not `IndexError`
This commit is contained in:
James 2018-03-03 06:35:28 +13:00 committed by Kowlin
parent cf48a13fc7
commit ed5945e182

View File

@ -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: