MilesCranmer commited on
Commit
ef3bdd3
1 Parent(s): 44d381d

Catch travis errors stemming from domain error

Browse files
Files changed (1) hide show
  1. julia/sr.jl +1 -1
julia/sr.jl CHANGED
@@ -264,7 +264,7 @@ function scoreFunc(tree::Node)::Float32
264
  try
265
  return SSE(evalTreeArray(tree), y)/baselineSSE + countNodes(tree)*parsimony
266
  catch error
267
- if isa(error, DomainError)
268
  return 1f9
269
  else
270
  throw(error)
 
264
  try
265
  return SSE(evalTreeArray(tree), y)/baselineSSE + countNodes(tree)*parsimony
266
  catch error
267
+ if isa(error, DomainError) || isa(error, LoadError) || isa(error, TaskFailedException)
268
  return 1f9
269
  else
270
  throw(error)