Skip to content

Commit f2814a6

Browse files
committed
libhts: Add error handling for attach_variable method
1 parent f3de712 commit f2814a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/hts/libhts.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ def self.attach_function(*)
2323
rescue FFI::NotFoundError => e
2424
warn e.message if $VERBOSE
2525
end
26+
27+
def self.attach_variable(*)
28+
super
29+
rescue FFI::NotFoundError => e
30+
warn e.message if $VERBOSE
31+
end
2632
end
2733
end
2834

0 commit comments

Comments
 (0)