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