From ed5945e18240b127829360f82c279a0e5e239847 Mon Sep 17 00:00:00 2001 From: James Date: Sat, 3 Mar 2018 06:35:28 +1300 Subject: [PATCH] fixed exception (#1372) `requirements.remove` will raise a ValueError if the item is not there, not `IndexError` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f1e5b2068..cb44b2f46 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def get_requirements(): requirements = f.read().splitlines() try: requirements.remove('git+https://github.com/Rapptz/discord.py.git@rewrite#egg=discord.py[voice]') - except IndexError: + except ValueError: pass if IS_DEPLOYING or not IS_TRAVIS: