Skip to content

Commit a845f88

Browse files
another important fix
1 parent 3126b37 commit a845f88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ReusableFunctions.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ import JLD2
3939
import FileIO
4040
import DataStructures
4141
import Compat
42-
import Suppressor
4342
import Compat.String
4443

4544
"Reset restarts counter"
@@ -77,9 +76,11 @@ end
7776

7877
"Load JLD result file"
7978
function loadresultfile(filename::String; key::String="result")
79+
if !isfile(filename)
80+
return nothing
81+
end
8082
try
81-
@Suppressor.suppress result = FileIO.load(filename, key)
82-
return result
83+
return FileIO.load(filename, key)
8384
catch
8485
return nothing
8586
end

0 commit comments

Comments
 (0)