Add lib parameter for cli_exit

This commit is contained in:
Dang Mai 2013-01-31 16:33:53 -05:00
parent 63d939d1d3
commit 2ad5b4c665

View file

@ -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))