mirror of
https://github.com/beetbox/beets.git
synced 2026-02-10 09:25:42 +01:00
merge new events (#79)
This commit is contained in:
commit
5887b71089
2 changed files with 2 additions and 0 deletions
|
|
@ -979,6 +979,7 @@ class Transaction(object):
|
|||
the row ID of the last affected row.
|
||||
"""
|
||||
cursor = self.lib._connection().execute(statement, subvals)
|
||||
plugins.send('database_change', lib=self.lib)
|
||||
return cursor.lastrowid
|
||||
|
||||
def script(self, statements):
|
||||
|
|
|
|||
|
|
@ -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