diff --git a/mininet/node.py b/mininet/node.py index 73602b1..1f85062 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -1436,4 +1436,8 @@ def findController( controllers=DefaultControllers ): def DefaultController( name, controllers=DefaultControllers, **kwargs ): "Find a controller that is available and instantiate it" - return findController( controllers )( name, **kwargs ) + controller = findController( controllers ) + if not controller: + raise Exception( 'Could not find a default OpenFlow controller' ) + return controller( name, **kwargs ) +