Skip to content

Commit 6f7a777

Browse files
committed
capture license expiration error
1 parent cd7c4c0 commit 6f7a777

File tree

1 file changed

+7
-1
lines changed
  • backfill_corrections/delphiBackfillCorrection/R

1 file changed

+7
-1
lines changed

backfill_corrections/delphiBackfillCorrection/R/model.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ model_training_and_testing <- function(train_data, test_data, taus, covariates,
131131

132132
success = success + 1
133133
},
134-
error=function(e) {msg_ts("Training failed for ", model_path)}
134+
error=function(e) {
135+
if (e$message == "Error 10032: License has expired\n") {
136+
stop("The gurobi license has expired. Please renew or switch to ",
137+
"using glpk. lp_solver can be specified in params.json.")
138+
}
139+
msg_ts("Training failed for ", model_path)
140+
}
135141
)
136142
}
137143
if (success < length(taus)) {return (NULL)}

0 commit comments

Comments
 (0)