suppress a warning:
lib/capybara/selenium/driver.rb:82: warning: assigned but unused variable - e
This commit is contained in:
parent
2735b26317
commit
be7c258446
|
@ -79,7 +79,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base
|
|||
if @browser
|
||||
begin
|
||||
@browser.manage.delete_all_cookies
|
||||
rescue Selenium::WebDriver::Error::UnhandledError => e
|
||||
rescue Selenium::WebDriver::Error::UnhandledError
|
||||
# delete_all_cookies fails when we've previously gone
|
||||
# to about:blank, so we rescue this error and do nothing
|
||||
# instead.
|
||||
|
|
Loading…
Reference in New Issue