From eff814f12b85f3192fd4be84d58c3b4711599b07 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Fri, 24 Sep 2021 20:35:22 +0800 Subject: [PATCH] chore: change error message --- fetch_holidays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch_holidays.py b/fetch_holidays.py index b121fd6..7c3b32c 100755 --- a/fetch_holidays.py +++ b/fetch_holidays.py @@ -50,7 +50,7 @@ def _raise_for_status_200(resp: requests.Response): resp.raise_for_status() if resp.status_code != 200: raise requests.HTTPError( - "request failed: %s: %d" % (resp.request.url, resp.status_code), + "request failed: %d: %s" % (resp.status_code, resp.request.url), response=resp, )