Skip to content

Commit 3ad68da

Browse files
committed
add response.reason_phrase to error
1 parent c84fe77 commit 3ad68da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/feed_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def fetch_feed(url: str, modified: str = "", etag: str = "") -> Dict:
3838
response.raise_for_status()
3939

4040
except httpx.HTTPStatusError as exc:
41-
error = f"HTTP status error while requesting {url}: {exc.response.status_code}"
41+
error = f"HTTP status error while requesting {url}: {exc.response.status_code} {exc.response.reason_phrase}"
4242
except httpx.TimeoutException:
4343
error = f"Timeout while requesting {url}"
4444
except Exception as e:

0 commit comments

Comments
 (0)