Skip to content

Commit 07dd915

Browse files
committed
Add an @isdefined check
1 parent a5abede commit 07dd915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ Macro to retry an expression on `IOError`. Note that the variable `max_tries` ne
250250
"""
251251
macro retry_on_error(e)
252252
esc(quote
253-
retry_on_error(;max_tries=max_tries) do
253+
retry_on_error(;max_tries=(@isdefined max_tries) ? max_tries : 1) do
254254
$(e)
255255
end
256256
end)

0 commit comments

Comments
 (0)