mirror of
https://github.com/beetbox/beets.git
synced 2025-12-25 10:05:13 +01:00
Raise PluginConflictException instead of the generic Exception for new hook.
This commit is contained in:
parent
79616b42ed
commit
c8fa1b2809
1 changed files with 1 additions and 1 deletions
|
|
@ -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.')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue