Skip to content

Commit

Permalink
Don't call ReadPackage on non-existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Aug 26, 2024
1 parent 4177530 commit 44ea358
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gap/calibration.gi
Original file line number Diff line number Diff line change
Expand Up @@ -859,13 +859,13 @@ CVEC_WinogradBounds :=
# Now read hostname-specific calibration data:
if IsBoundGlobal("IO_gethostname") then
CVEC_hostname := IO_gethostname();
CVEC_calibrationfile := Concatenation("local/calibration.",
CVEC_hostname);
if CVEC_hostname <> "" then
if ReadPackage("cvec",CVEC_calibrationfile) = true then
Info(InfoCVec,1,"Have read host-specific calibration file ",
CVEC_calibrationfile);
fi;
CVEC_calibrationfile := Filename(
DirectoriesPackageLibrary("cvec", "local"),
Concatenation("calibration.", CVEC_hostname));
if CVEC_hostname <> "" and CVEC_calibrationfile <> fail then
Read(CVEC_calibrationfile);
Info(InfoCVec,1,"Have read host-specific calibration file ",
CVEC_calibrationfile);

Check warning on line 868 in gap/calibration.gi

View check run for this annotation

Codecov / codecov/patch

gap/calibration.gi#L866-L868

Added lines #L866 - L868 were not covered by tests
fi;
fi;

Expand Down

0 comments on commit 44ea358

Please sign in to comment.