lib/appium_lib/common/helper.rb in appium_lib-9.1.1 vs lib/appium_lib/common/helper.rb in appium_lib-9.1.2

- old
+ new

@@ -18,12 +18,12 @@ # # secure class_name is iOS only because it can't be implemented using uiautomator for Android. # # find_element :text doesn't work so use XPath to find by text. - # Return block.call and ignore any exceptions. - def ignore(&block) - block.call + # Return yield and ignore any exceptions. + def ignore + yield rescue Exception # rubocop:disable Lint/HandleExceptions, Lint/RescueException end # Navigate back. # @return [void]