Skip to content

Commit

Permalink
TEST change url testing to issue a warning instead of error(#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopfonseca committed Oct 6, 2024
1 parent 156cff3 commit 65cc97e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlresearch/datasets/tests/test_datasets.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import warnings
from urllib.request import urlopen
from urllib.error import URLError
import multiprocessing.dummy as mp
Expand Down Expand Up @@ -32,7 +33,7 @@ def _open_url(url):
try:
return urlopen(url)
except URLError as e:
raise URLError(f"Error for url {url}: {e}")
warnings.warn(f"Error for url {url}: {e}")


def test_urls():
Expand Down

0 comments on commit 65cc97e

Please sign in to comment.