Removed the allowance of response code 202, as this means no data is returned yet
This commit is contained in:
parent
8d37ecd4d4
commit
2221243778
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ authenticated_session: requests.Session = requests.Session()
|
||||||
|
|
||||||
def url_to_xml_object(url: HttpUrl) -> ET.Element:
|
def url_to_xml_object(url: HttpUrl) -> ET.Element:
|
||||||
r = authenticated_session.get(url)
|
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)
|
root = ET.fromstring(r.content)
|
||||||
return root
|
return root
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue