Add isnothing(fig_path) check

pull/462/head
Nicholas W. M. Ritchie 2022-07-13 09:51:59 -04:00
parent b669a14038
commit b022a54458
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ function run_doc(
cd_back()
popdisplay(report) # ensure display pops out even if internal error occurs
# Temporary fig_path is not automatically removed because it contains files so...
startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
!isnothing(fig_path) && startswith(fig_path, "jl_") && rm(normpath(cwd, fig_path), force=true, recursive=true)
end
return doc