From 7d3859833d0647cad15c614e816df9440bb99d44 Mon Sep 17 00:00:00 2001 From: Trey Morris Date: Thu, 14 Jul 2011 16:52:27 -0500 Subject: catching the correct exception --- nova/network/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nova/network/manager.py b/nova/network/manager.py index 824e8d24d..24736f53d 100644 --- a/nova/network/manager.py +++ b/nova/network/manager.py @@ -340,7 +340,7 @@ class NetworkManager(manager.SchedulerDependentManager): """Set the network hosts for any networks which are unset.""" try: networks = self.db.network_get_all(context) - except Exception.NoNetworksFound: + except exception.NoNetworksFound: # we don't care if no networks are found pass @@ -357,7 +357,7 @@ class NetworkManager(manager.SchedulerDependentManager): # a non-vlan instance should connect to try: networks = self.db.network_get_all(context) - except Exception.NoNetworksFound: + except exception.NoNetworksFound: # we don't care if no networks are found pass -- cgit