From 3a94d6b57387e7518d12b4f4ae33c5d141406ba9 Mon Sep 17 00:00:00 2001 From: Jarrett Revels Date: Fri, 16 Sep 2016 16:45:36 +0100 Subject: [PATCH] check that module entry exists in params.jld before trying to load it --- src/BaseBenchmarks.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BaseBenchmarks.jl b/src/BaseBenchmarks.jl index fe1c69b2..76ceb6dc 100644 --- a/src/BaseBenchmarks.jl +++ b/src/BaseBenchmarks.jl @@ -50,7 +50,7 @@ function loadall!(group::BenchmarkGroup; verbose::Bool = true, tune::Bool = true if tune jldopen(PARAMS_PATH, "r") do file for (id, suite) in group - loadparams!(suite, read(file, id), :evals) + JLD.exists(file, id) && loadparams!(suite, read(file, id), :evals) end end end