Skip to content

Commit b4e9e7d

Browse files
committed
protect if no exclude file
1 parent b38bae2 commit b4e9e7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/combine_daily_rvs_1.0.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ for file in files
9393
=#
9494
@info "# Processing $file"
9595
d = CSV.read(file,DataFrame)
96-
if in(Date(julian2datetime(first(d.jd_drp))), df_exclude.date_to_exclude) continue end
96+
if hasproperty(df_exclude,:date_to_exclude) && in(Date(julian2datetime(first(d.jd_drp))), df_exclude.date_to_exclude) continue end
9797
global j += 1
9898
daily[j] = d
9999
end

0 commit comments

Comments
 (0)