Skip to content

Commit 9ef97b6

Browse files
committed
circumvent Internal Error: Base.InvalidCharError{Char}('\xb0')
1 parent 49e4fdb commit 9ef97b6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/module.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ file is included or nothing.
159159
"""
160160
function find_include(path::AbstractString)
161161
for file in @> path dirname dirsnearby jl_files
162-
line = includeline(file, path)
162+
line = -1
163+
try
164+
line = includeline(file, path)
165+
catch err
166+
return nothing
167+
end
163168
line > 0 && (return file, line)
164169
end
165170
end

0 commit comments

Comments
 (0)