Skip to content

Commit 02cf1e8

Browse files
committed
return status code once request is submitted
1 parent 6d4fb5b commit 02cf1e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

delete_acceptance/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def delete_risk_acceptance(auth_header, url, ssl_verification, directory_path):
5757
print("Delete risk acceptance: ", risk_exception)
5858
response = requests.delete(
5959
url_with_risk_def, json=risk_exception, headers=auth_header)
60-
print(response.status_code)
60+
response.raise_for_status()
6161
except requests.exceptions.HTTPError as e:
6262
print(" ERROR ".center(80, "-"))
6363
print("Failed deleting risk acceptance", e)

0 commit comments

Comments
 (0)