From 25256813f56f6c979fecbb9062d7bb5955ad2328 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Tue, 29 Oct 2024 21:38:39 +0100 Subject: [PATCH] put reading the `__version__` from the pyplot package in try catch since it can fail (#594) * put reading the `__version__` from the pyplot package in try catch since it can fail * Update src/init.jl Co-authored-by: Steven G. Johnson --------- Co-authored-by: Steven G. Johnson --- src/init.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/init.jl b/src/init.jl index 79d0813..0c6db23 100644 --- a/src/init.jl +++ b/src/init.jl @@ -172,9 +172,8 @@ function __init__() ccall(:jl_generating_output, Cint, ()) == 1 && return nothing isjulia_display[] = isdisplayok() copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib")) - mvers = matplotlib.__version__ global version = try - vparse(mvers) + vparse(matplotlib.__version__) catch v"0.0.0" # fallback end