Browse Source

Maintenance: Make sure that exceptions are correctly handled.

Florian Liebe 6 months ago
parent
commit
d0f6e5b923

+ 1 - 1
lib/sequencer/unit/import/freshdesk/requester.rb

@@ -11,7 +11,7 @@ module Sequencer::Unit::Import::Freshdesk::Requester
       return response if response.is_a?(Net::HTTPOK) || response.is_a?(Net::HTTPNotFound)
 
       handle_error response, iteration
-    rescue e
+    rescue => e
       handle_exception e, iteration
     end
 

+ 1 - 1
lib/sequencer/unit/import/kayako/requester.rb

@@ -16,7 +16,7 @@ module Sequencer::Unit::Import::Kayako::Requester
       end
 
       handle_error response, iteration
-    rescue e
+    rescue => e
       handle_exception e, iteration
     end
 

+ 1 - 1
test/browser_test_helper.rb

@@ -4877,7 +4877,7 @@ wait untill text in selector disabppears
     begin
       alert = instance.switch_to.alert
       alert.dismiss
-    rescue e
+    rescue => e
       tries -= 1
       sleep 0.5
       retry if tries.positive?