summaryrefslogtreecommitdiff
path: root/cloudinit/cmd/devel/hotplug_hook.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/cmd/devel/hotplug_hook.py')
-rwxr-xr-xcloudinit/cmd/devel/hotplug_hook.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/cmd/devel/hotplug_hook.py b/cloudinit/cmd/devel/hotplug_hook.py
index 560857ef..78085735 100755
--- a/cloudinit/cmd/devel/hotplug_hook.py
+++ b/cloudinit/cmd/devel/hotplug_hook.py
@@ -168,7 +168,7 @@ def is_enabled(hotplug_init, subsystem):
try:
scope = SUBSYSTEM_PROPERTES_MAP[subsystem][1]
except KeyError as e:
- raise Exception(
+ raise RuntimeError(
"hotplug-hook: cannot handle events for subsystem: {}".format(
subsystem
)