summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 7aa42d1..13e82d6 100644
--- a/setup.py
+++ b/setup.py
@@ -14,6 +14,8 @@ from setuptools.extension import Extension
def urlretrieve(source_url, destination_path):
response = requests.get(source_url, stream=True)
+ if response.status_code != 200:
+ raise Exception("status code was: {}".format(response.status_code))
with open(destination_path, "wb") as fileobj:
for chunk in response.iter_content(chunk_size=128):