Skip to content

Commit b1c522e

Browse files
committed
Ensure request errors are raised from reader
1 parent f6843d2 commit b1c522e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

harp/reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ def from_url(
164164
"""
165165

166166
response = requests.get(url, timeout=timeout)
167+
response.raise_for_status()
167168
text = response.text
169+
168170
return cls.from_str(
169171
text,
170172
base_path=base_path,

0 commit comments

Comments
 (0)