Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9be7d3e

Browse files
authoredOct 28, 2024··
put reading the __version__ from the pyplot package in try catch since it can fail
1 parent e7565b9 commit 9be7d3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/init.jl

+1-2
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,8 @@ function __init__()
148148
ccall(:jl_generating_output, Cint, ()) == 1 && return nothing
149149
isjulia_display[] = isdisplayok()
150150
PythonCall.pycopy!(matplotlib, pyimport("matplotlib"))
151-
mvers = pyconvert(String, matplotlib.__version__)
152151
global version = try
153-
vparse(mvers)
152+
vparse(pyconvert(String, matplotlib.__version__))
154153
catch
155154
v"0.0.0" # fallback
156155
end

0 commit comments

Comments
 (0)
Please sign in to comment.