From 636a9d75f0589b4c8e2166a78fa0c67ccd6ed3b6 Mon Sep 17 00:00:00 2001 From: Max Halford Date: Fri, 23 Jun 2023 08:43:42 +0200 Subject: [PATCH] Update base.py --- river/datasets/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/river/datasets/base.py b/river/datasets/base.py index 63e234f0ba..53a5ba2f88 100644 --- a/river/datasets/base.py +++ b/river/datasets/base.py @@ -276,7 +276,7 @@ def download(self, force=False, verbose=True): try: n_bytes = int(meta["Content-Length"]) msg = f"Downloading {self.url} ({utils.pretty.humanize_bytes(n_bytes)})" - except KeyError: + except (KeyError, TypeError): msg = f"Downloading {self.url}" print(msg)