Skip to content

Commit

Permalink
Add feedback to test
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrandje committed Sep 22, 2023
1 parent aa1d766 commit 7553c13
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,16 +247,17 @@ def test_sources_yaml(mock_Dataset_without_s3):
# CachedSession is fixed
# See https://github.com/requests-cache/requests-cache/issues/878
r = scraper.head(url)
except Exception:
except Exception as e:
errors_type3.append(
f"error on yaml {str_yaml} : "
f"https get request failed on {url}"
f"https head request failed on {url} "
f"with exception {e}"
)
continue
if not r.ok:
errors_type4.append(
f"error on yaml {str_yaml} : "
"https get request "
"https head request "
f"got code {r.status_code} on {url}"
)
if errors_type0:
Expand Down

0 comments on commit 7553c13

Please sign in to comment.