summaryrefslogtreecommitdiff
path: root/cloudinit/cmd
diff options
context:
space:
mode:
authorAlberto Contreras <alberto.contreras@canonical.com>2023-03-14 10:36:36 +0100
committerGitHub <noreply@github.com>2023-03-14 10:36:36 +0100
commit8a0feb1ec04b211f9444e0eeaf473b670db475bd (patch)
treefd7d1a596b5dcd8a9a5b9077004459735218a263 /cloudinit/cmd
parent2e697bb0e7f251385e9c227629b78d59e4cfea8b (diff)
downloadcloud-init-git-8a0feb1ec04b211f9444e0eeaf473b670db475bd.tar.gz
chore: fix style tip (#2071)
- remove too broad exceptions - ignore dynamic base types in templater
Diffstat (limited to 'cloudinit/cmd')
-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
)