Skip to content

Commit

Permalink
Make manifest usage log errors non-fatal (JuliaLang#3962)
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp authored Jul 23, 2024
1 parent 6b43949 commit 90d42a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,12 @@ function write_env_usage(source_file::AbstractString, usage_filepath::AbstractSt
## Atomically write usage file using process id locking
FileWatching.mkpidlock(usage_file * ".pid", stale_age = 3) do
usage = if isfile(usage_file)
TOML.parsefile(usage_file)
try
TOML.parsefile(usage_file)
catch err
@warn "Failed to parse usage file `$usage_file`, ignoring." err
Dict{String, Any}()
end
else
Dict{String, Any}()
end
Expand Down

0 comments on commit 90d42a1

Please sign in to comment.