Skip to content

Commit

Permalink
Update base.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxHalford committed Jun 23, 2023
1 parent ca29443 commit 636a9d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion river/datasets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 636a9d7

Please sign in to comment.