From 04bbdede3857dfcae5a2c8bd8b60f5ceb204f985 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 1 May 2016 13:04:35 -0700 Subject: [PATCH] hook: Typed configuration accessors --- beetsplug/hook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beetsplug/hook.py b/beetsplug/hook.py index 2b0bf2b0a..8f87e34da 100644 --- a/beetsplug/hook.py +++ b/beetsplug/hook.py @@ -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)