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)