From 22212437788c647604449be2b191b8f65edd058c Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Thu, 1 Aug 2024 14:09:04 +0200 Subject: [PATCH] Removed the allowance of response code 202, as this means no data is returned yet --- bgg_connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgg_connection.py b/bgg_connection.py index 190b4d6..a1c8698 100644 --- a/bgg_connection.py +++ b/bgg_connection.py @@ -11,7 +11,7 @@ authenticated_session: requests.Session = requests.Session() def url_to_xml_object(url: HttpUrl) -> ET.Element: r = authenticated_session.get(url) - assert r.status_code == 200 or r.status_code == 202, "Got {} status code".format(r.status_code) + assert r.status_code == 200, "Got {} status code".format(r.status_code) root = ET.fromstring(r.content) return root