diff --git a/core/modules/node/src/Plugin/migrate/D6NodeDeriver.php b/core/modules/node/src/Plugin/migrate/D6NodeDeriver.php
index f3e1a92..dd8975a 100644
--- a/core/modules/node/src/Plugin/migrate/D6NodeDeriver.php
+++ b/core/modules/node/src/Plugin/migrate/D6NodeDeriver.php
@@ -4,6 +4,7 @@
 
 use Drupal\Component\Plugin\Derivative\DeriverBase;
 use Drupal\Component\Plugin\PluginManagerInterface;
+use Drupal\Core\Database\ConnectionNotDefinedException;
 use Drupal\Core\Database\DatabaseExceptionWrapper;
 use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
 use Drupal\migrate\Exception\RequirementsException;
@@ -143,6 +144,10 @@ public function getDerivativeDefinitions($base_plugin_definition) {
         $this->derivatives[$node_type] = $migration->getPluginDefinition();
       }
     }
+    catch (ConnectionNotDefinedException $e) {
+      // We may be invoked by general plugin discovery when there is no D6
+      // migration configured.
+    }
     catch (DatabaseExceptionWrapper $e) {
       // Once we begin iterating the source plugin it is possible that the
       // source tables will not exist. This can happen when the
diff --git a/core/modules/node/src/Plugin/migrate/D7NodeDeriver.php b/core/modules/node/src/Plugin/migrate/D7NodeDeriver.php
index 6efa1c7..6df763c 100644
--- a/core/modules/node/src/Plugin/migrate/D7NodeDeriver.php
+++ b/core/modules/node/src/Plugin/migrate/D7NodeDeriver.php
@@ -4,6 +4,7 @@
 
 use Drupal\Component\Plugin\Derivative\DeriverBase;
 use Drupal\Component\Plugin\PluginManagerInterface;
+use Drupal\Core\Database\ConnectionNotDefinedException;
 use Drupal\Core\Database\DatabaseExceptionWrapper;
 use Drupal\Core\Plugin\Discovery\ContainerDeriverInterface;
 use Drupal\migrate\Exception\RequirementsException;
@@ -113,6 +114,10 @@ public function getDerivativeDefinitions($base_plugin_definition) {
         $this->derivatives[$node_type] = $migration->getPluginDefinition();
       }
     }
+    catch (ConnectionNotDefinedException $e) {
+      // We may be invoked by general plugin discovery when there is no D6
+      // migration configured.
+    }
     catch (DatabaseExceptionWrapper $e) {
       // Once we begin iterating the source plugin it is possible that the
       // source tables will not exist. This can happen when the
