Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 526733c

Browse files
committed
Catch standard error when testing file path
1 parent 5f6893b commit 526733c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/assemblyai/files/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def upload(file:, request_options: nil)
2626
if file.is_a? String
2727
begin
2828
path = Pathname.new(file)
29-
rescue RuntimeError
29+
rescue StandardError
3030
file_data = file
3131
end
3232
unless path.nil?

0 commit comments

Comments
 (0)