Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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