Skip to content

Commit 34381a7

Browse files
try fix
1 parent 2174bbd commit 34381a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Types.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,12 @@ function write_env_usage(source_file::AbstractString, usage_filepath::AbstractSt
470470
while true
471471
# read existing usage file
472472
usage = if isfile(usage_file)
473-
TOML.parsefile(usage_file)
473+
try
474+
TOML.parsefile(usage_file)
475+
catch
476+
sleep(0.1)
477+
continue
478+
end
474479
else
475480
Dict{String, Any}()
476481
end

0 commit comments

Comments
 (0)