Skip to content

Commit 2525681

Browse files
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 <[email protected]> --------- Co-authored-by: Steven G. Johnson <[email protected]>
1 parent 00119f8 commit 2525681

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/init.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ function __init__()
172172
ccall(:jl_generating_output, Cint, ()) == 1 && return nothing
173173
isjulia_display[] = isdisplayok()
174174
copy!(matplotlib, pyimport_conda("matplotlib", "matplotlib"))
175-
mvers = matplotlib.__version__
176175
global version = try
177-
vparse(mvers)
176+
vparse(matplotlib.__version__)
178177
catch
179178
v"0.0.0" # fallback
180179
end

0 commit comments

Comments
 (0)