mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 07:48:03 -06:00
hook: Typed configuration accessors
This commit is contained in:
+2
-2
@@ -36,8 +36,8 @@ class HookPlugin(BeetsPlugin):
|
||||
for hook_index in range(len(hooks)):
|
||||
hook = self.config['hooks'][hook_index]
|
||||
|
||||
hook_event = hook['event'].get()
|
||||
hook_command = hook['command'].get()
|
||||
hook_event = hook['event'].get(unicode)
|
||||
hook_command = hook['command'].get(unicode)
|
||||
|
||||
self.create_and_register_hook(hook_event, hook_command)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user