Perhaps collect stacktraces rather than backtraces? The docs for stacktrace say it returns a vector of StackFrames, so this should be less fragile:
is_stacktrace(x) = x isa AbstractVector{StackTraces.StackFrame}
Perhaps collect stacktraces rather than backtraces? The docs for stacktrace say it returns a vector of StackFrames, so this should be less fragile:
is_stacktrace(x) = x isa AbstractVector{StackTraces.StackFrame}