From f817dd9df2834d29dd60988a02469ba327c8bd15 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 2 Oct 2024 14:51:27 +0200 Subject: [PATCH] Update Exception.jl --- src/runner/PlutoRunner/src/display/Exception.jl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/runner/PlutoRunner/src/display/Exception.jl b/src/runner/PlutoRunner/src/display/Exception.jl index 3c451ad0d..3aaeda7b2 100644 --- a/src/runner/PlutoRunner/src/display/Exception.jl +++ b/src/runner/PlutoRunner/src/display/Exception.jl @@ -67,13 +67,15 @@ function format_output(val::CapturedException; context=default_iocontext) pretty = map(stack_relevant) do s method = method_from_frame(s) + local url = local repo_url = local repo_type = local sp = nothing if method isa Method - url = BrowserMacrosLite.method_url(method) - repo_url = BrowserMacrosLite._repo_url(url) - repo_type = BrowserMacrosLite.repotype(method) - sp = source_package(method) - else - url = repo_url = repo_type = sp = nothing + try + url = BrowserMacrosLite.method_url(method) + repo_url = BrowserMacrosLite._repo_url(url) + repo_type = BrowserMacrosLite.repotype(method) + sp = source_package(method) + catch e + end end Dict(