Skip to content

Commit

Permalink
REPL: also catch ArgumentError in expanduser in tab completion (Julia…
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Sep 10, 2020
1 parent c5ede45 commit 10f5a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/REPL/src/REPLCompletions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ function complete_path(path::AbstractString, pos::Int; use_envpath=false, shell_
filesinpath = readdir(pathdir)
catch e
# Bash allows dirs in PATH that can't be read, so we should as well.
if isa(e, Base.IOError)
if isa(e, Base.IOError) || isa(e, Base.ArgumentError)
continue
else
# We only handle IOError here
# We only handle IOError and ArgumentError here
rethrow()
end
end
Expand Down

0 comments on commit 10f5a05

Please sign in to comment.