Skip to content

Commit

Permalink
Catch standard error when testing file path
Browse files Browse the repository at this point in the history
  • Loading branch information
Swimburger committed Aug 20, 2024
1 parent 5f6893b commit 526733c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assemblyai/files/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def upload(file:, request_options: nil)
if file.is_a? String
begin
path = Pathname.new(file)
rescue RuntimeError
rescue StandardError
file_data = file
end
unless path.nil?
Expand Down

0 comments on commit 526733c

Please sign in to comment.