Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/nm/nminfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'services/nm/nminfo.py')
-rw-r--r--services/nm/nminfo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/nm/nminfo.py b/services/nm/nminfo.py
index 592fa39..4d55af1 100644
--- a/services/nm/nminfo.py
+++ b/services/nm/nminfo.py
@@ -385,13 +385,17 @@ class NMInfo(object):
dev = self._nmclient.get_device(dev_op)
if not dev:
async_err_cb(NotFoundError("Device was unknown."))
+ return
+
if dev.get_type() == nmclient.DEVICE_TYPE_802_3_ETHERNET:
# We don't support wired 802.1x yet...
async_err_cb(UnsupportedError("Device type is unsupported by NMI."))
+ return
net = dev.get_network(net_op)
if not net:
async_err_cb(NotFoundError("Network was unknown."))
+ return
self._nmclient.get_key_for_network(net, async_cb, async_err_cb)