diff options
author | Alberto Contreras <alberto.contreras@canonical.com> | 2023-03-14 10:36:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 10:36:36 +0100 |
commit | 8a0feb1ec04b211f9444e0eeaf473b670db475bd (patch) | |
tree | fd7d1a596b5dcd8a9a5b9077004459735218a263 /cloudinit/cmd | |
parent | 2e697bb0e7f251385e9c227629b78d59e4cfea8b (diff) | |
download | cloud-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-x | cloudinit/cmd/devel/hotplug_hook.py | 2 |
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 ) |