File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,21 @@ def create_score_execution(
77
77
if score_execution .status_code >= 400 :
78
78
raise HTTPError (
79
79
{
80
- f"Something went wrong in the GET statement. See error: { score_execution .json ()} "
80
+ f"Something went wrong in the LIST_EXECUTIONS statement. See error: { score_execution .json ()} "
81
81
}
82
82
)
83
83
84
84
# Checking the count of the execution list to see if there are any score executions for this score_definition_id already running
85
85
execution_count = score_execution .get ("count" ) # Exception catch location
86
86
if execution_count == 1 :
87
87
execution_id = score_execution .get ("items" , [0 ], ["id" ])
88
- deleted_execution = cls .delete_execution (execution_id )
88
+ deleted_execution = cls .delete_execution (execution_id )
89
+ if deleted_execution .status_code >= 400 :
90
+ raise HTTPError (
91
+ {
92
+ f"Something went wrong in the DELETE statement. See error: { score_execution .json ()} "
93
+ }
94
+ )
89
95
90
96
headers_score_exec = {"Content-Type" : "application/json" }
91
97
You can’t perform that action at this time.
0 commit comments