mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 01:25:47 +01:00
Add cli_exit event
This commit is contained in:
parent
afae030477
commit
03c311696f
1 changed files with 1 additions and 0 deletions
|
|
@ -723,6 +723,7 @@ 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