Skip to content

Commit 88ee2ae

Browse files
committed
fix for error hint
1 parent ef3adc0 commit 88ee2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ControlSystemsBase/src/ControlSystemsBase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function __init__()
244244
print(io, " for automatic discretization (applicable to systems without delays or nonlinearities only).")
245245
end
246246
plots_id = Base.PkgId(UUID("91a5bcdd-55d7-5caf-9e0b-520d859cae80"), "Plots")
247-
if exc.f !== nothing && nameof(exc.f) === :plot && parentmodule(argtypes[1]) == @__MODULE__() && !haskey(Base.loaded_modules, plots_id)
247+
if exc.f isa Function && nameof(exc.f) === :plot && parentmodule(argtypes[1]) == @__MODULE__() && !haskey(Base.loaded_modules, plots_id)
248248
printstyled(io, "\nPlotting is not available unless Plots.jl is loaded manually. Call `using Plots` before plotting.", color=:green, bold=true)
249249
elseif (exc.f == /) && argtypes[2] <: DelayLtiSystem
250250
print(io, "A delayed system can not be inverted. Consider use of the function `feedback`.")

0 commit comments

Comments
 (0)