diff --git a/test/unit/exception_handling/log_error_stub_test.rb b/test/unit/exception_handling/log_error_stub_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/exception_handling/log_error_stub_test.rb
+++ b/test/unit/exception_handling/log_error_stub_test.rb
@@ -41,7 +41,7 @@ module ExceptionHandling
         assert_equal exception_pattern, exception_whitelist[0][0]
         begin
           ExceptionHandling.log_error("This is a test error")
-        rescue Exception
+        rescue StandardError
           flunk # Shouldn't raise an error in this case
         end
       end
@@ -53,7 +53,7 @@ module ExceptionHandling
         assert_equal exception_pattern, exception_whitelist[0][0]
         begin
           ExceptionHandling.log_error("This is a test error")
-        rescue Exception
+        rescue StandardError
           flunk # Shouldn't raise an error in this case
         end
       end
diff --git a/test/unit/exception_handling_test.rb b/test/unit/exception_handling_test.rb
index <HASH>..<HASH> 100644
--- a/test/unit/exception_handling_test.rb
+++ b/test/unit/exception_handling_test.rb
@@ -14,7 +14,7 @@ class ExceptionHandlingTest < ActiveSupport::TestCase
     data[:user_details]                = {}
     data[:user_details][:username]     = "CaryP"
     data[:user_details][:organization] = "Invoca Engineering Dept."
-  rescue Exception
+  rescue StandardError
     # don't let these out!
   end
TECH-<I>-Upgrade Ruby 2 4: fix exception class