Skip to content

Commit 06136e2

Browse files
authored
put reading the __version__ from the pyplot package in try catch since it can fail (#43)
1 parent 93dfb2e commit 06136e2

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)