mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Don't call exit when parameter in file is unknown
Wrong or old parameters in traineddata files should not terminate the program, so make that a warning instead of a fatal error. This fixes issue #1520. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a2612f2830
commit
741ea00d70
@ -79,8 +79,7 @@ bool ParamUtils::ReadParamsFromFp(SetParamConstraint constraint, TFile *fp,
|
||||
|
||||
if (!foundit) {
|
||||
anyerr = true; // had an error
|
||||
tprintf("read_params_file: parameter not found: %s\n", line);
|
||||
exit(1);
|
||||
tprintf("Warning: Parameter not found: %s\n", line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user