summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers/netlink.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/sources/helpers/netlink.py')
-rw-r--r--cloudinit/sources/helpers/netlink.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/netlink.py b/cloudinit/sources/helpers/netlink.py
index a74a3588..c2ad587b 100644
--- a/cloudinit/sources/helpers/netlink.py
+++ b/cloudinit/sources/helpers/netlink.py
@@ -74,7 +74,7 @@ def create_bound_netlink_socket():
netlink_socket.setblocking(0)
except socket.error as e:
msg = "Exception during netlink socket create: %s" % e
- raise NetlinkCreateSocketError(msg)
+ raise NetlinkCreateSocketError(msg) from e
LOG.debug("Created netlink socket")
return netlink_socket