Skip to content

Commit 260e4e3

Browse files
committed
xmlrpc: Only set cookies if request didn't error
There shouldn't be anything to set in that case Signed-off-by: Cole Robinson <[email protected]>
1 parent 4fc3636 commit 260e4e3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bugzilla/_backendxmlrpc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ def __request_helper(self, url, request_body):
4343
try:
4444
response = self.__bugzillasession.request(
4545
"POST", url, data=request_body)
46+
response.raise_for_status()
4647

47-
# update/set any cookies
4848
self.__bugzillasession.set_response_cookies(response)
49-
50-
response.raise_for_status()
5149
return self.parse_response(response)
5250
except RequestException as e:
5351
if not response:

0 commit comments

Comments
 (0)