mirror of
https://github.com/beetbox/beets.git
synced 2026-01-08 00:45:55 +01:00
Add lib parameter for cli_exit
This commit is contained in:
parent
63d939d1d3
commit
2ad5b4c665
1 changed files with 1 additions and 1 deletions
|
|
@ -716,6 +716,7 @@ def _raw_main(args, load_config=True):
|
|||
|
||||
# Invoke the subcommand.
|
||||
subcommand.func(lib, suboptions, subargs)
|
||||
plugins.send('cli_exit', lib=lib)
|
||||
|
||||
def main(args=None):
|
||||
"""Run the main command-line interface for beets. Includes top-level
|
||||
|
|
@ -723,7 +724,6 @@ def main(args=None):
|
|||
"""
|
||||
try:
|
||||
_raw_main(args)
|
||||
plugins.send('cli_exit')
|
||||
except UserError as exc:
|
||||
message = exc.args[0] if exc.args else None
|
||||
log.error(u'error: {0}'.format(message))
|
||||
|
|
|
|||
Loading…
Reference in a new issue