From 5637bfcc31ef0fc135f614ca1173032d6be46962 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Thu, 3 Oct 2024 13:47:54 +0200 Subject: [PATCH] Update Exception.jl --- src/runner/PlutoRunner/src/display/Exception.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/PlutoRunner/src/display/Exception.jl b/src/runner/PlutoRunner/src/display/Exception.jl index 6ee21618a..bc494b656 100644 --- a/src/runner/PlutoRunner/src/display/Exception.jl +++ b/src/runner/PlutoRunner/src/display/Exception.jl @@ -62,7 +62,7 @@ function format_output(val::CapturedException; context=default_iocontext) pretty = map(stack_relevant) do s method = method_from_frame(s) sp = source_package(method) - pm = method isa Method ? parentmodule(method) : nothing + pm = VERSION >= v"1.9" && method isa Method ? parentmodule(method) : nothing Dict( :call => pretty_stackcall(s, s.linfo),