summaryrefslogtreecommitdiff
path: root/cloudinit/netinfo.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/netinfo.py')
-rw-r--r--cloudinit/netinfo.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cloudinit/netinfo.py b/cloudinit/netinfo.py
index a6b32c4f..9ca72b77 100644
--- a/cloudinit/netinfo.py
+++ b/cloudinit/netinfo.py
@@ -24,7 +24,7 @@ def netdev_info():
if toks[i] == "hwaddr":
try:
devs[curdev]["hwaddr"] = toks[i+1]
- except IndexError as e:
+ except IndexError:
pass
for field in ("addr", "bcast", "mask"):
target = "%s%s" % (field, fieldpost)
@@ -33,7 +33,7 @@ def netdev_info():
if toks[i] == "%s:" % field:
try:
devs[curdev][target] = toks[i+1]
- except IndexError as e:
+ except IndexError:
pass
elif toks[i].startswith("%s:" % field):
devs[curdev][target] = toks[i][len(field)+1:]
@@ -61,7 +61,7 @@ def debug_info(pre="ci-info: "):
lines = [ ]
try:
netdev = netdev_info()
- except Exception as e:
+ except Exception:
lines.append("netdev_info failed!")
netdev = {}
for (dev, d) in netdev.iteritems():
@@ -69,7 +69,7 @@ def debug_info(pre="ci-info: "):
(pre, dev, d["up"], d["addr"],d["mask"], d["hwaddr"]))
try:
routes = route_info()
- except Exception as e:
+ except Exception:
lines.append("route_info failed")
routes = []
n = 0