mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 01:13:02 +01:00
hook: Typed configuration accessors
This commit is contained in:
parent
02592d2c54
commit
04bbdede38
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue