Skip to content

Commit 5db2132

Browse files
author
Pietro Vertechi
authored
Merge pull request #253 from JuliaComputing/jq/notrycatch
Remove try catch from fallback table constructor to not mask errors
2 parents 777ded0 + 55f906f commit 5db2132

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/tabletraits.jl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,4 @@ function table(rows::AbstractArray{T}; copy=false, kwargs...) where {T<:Union{Tu
4646
table(collect_columns(rows); copy=false, kwargs...)
4747
end
4848

49-
function table(iter; copy=false, kw...)
50-
try
51-
table(Tables.columntable(iter); copy=copy, kw...)
52-
catch e
53-
throw(ArgumentError("can't convert input to a table"))
54-
end
55-
end
49+
table(iter; copy=false, kw...) = table(Tables.columntable(iter); copy=copy, kw...)

0 commit comments

Comments
 (0)