From c8fa1b28094110a63f757a9a3966545ac6043a42 Mon Sep 17 00:00:00 2001 From: Ryan Lanny Jenkins Date: Mon, 29 Mar 2021 18:12:30 -0500 Subject: [PATCH] Raise PluginConflictException instead of the generic Exception for new hook. --- beets/ui/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index 9d3e3dda8..38687b3a9 100755 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -707,7 +707,7 @@ class TerminalImportSession(importer.ImportSession): if len(actions) == 1: return actions[0] elif len(actions) > 1: - raise Exception( + raise plugins.PluginConflictException( u'Only one handler for `import_task_before_choice` may return ' u'an action.')