Skip to content

Commit

Permalink
Fix warning for failed integration with PlotlyBase & PlotlyKaleide (#…
Browse files Browse the repository at this point in the history
…4849)

* Fix warning for failed integration with PlotlyBase & PlotlyKaleide

* Kaleide -> Kaleido
  • Loading branch information
blegat authored Dec 2, 2023
1 parent 42244b6 commit 15b080a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -592,9 +592,12 @@ function _initialize_backend(pkg::PlotlyBackend)
_post_imports(pkg)
_runtime_init(pkg)
catch err
err isa ArgumentError ||
@warn "Failed to load integration with PlotlyBase & PlotlyKaleide." exception =
if err isa ArgumentError
@warn "Failed to load integration with PlotlyBase & PlotlyKaleido." exception =
(err, catch_backtrace())
else
rethrow(err)
end
# NOTE: `plotly` is special in the way that it does not require dependencies for displaying a plot
# as a result, we cannot rely on the `@require` mechanism for loading glue code
# this is why it must be done here.
Expand Down

0 comments on commit 15b080a

Please sign in to comment.