From 826618e143cdc3442b6532ad48a592a4c996bfc7 Mon Sep 17 00:00:00 2001 From: Michael T Smith Date: Fri, 9 Sep 2016 16:27:08 +0100 Subject: [PATCH] fix: Bug in dataset (in fn download_url) which wrongly interprets the Content-Length meta data, and just takes first character. --- GPy/util/datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/util/datasets.py b/GPy/util/datasets.py index af8912ac..6cad1eed 100644 --- a/GPy/util/datasets.py +++ b/GPy/util/datasets.py @@ -140,7 +140,7 @@ def download_url(url, store_directory, save_name=None, messages=True, suffix='') meta = response.info() content_length_str = meta.get("Content-Length") if content_length_str: - file_size = int(content_length_str[0]) + file_size = int(content_length_str) else: file_size = None status = ""