mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
chroma: catch acoustid exceptions during submit
This commit is contained in:
parent
2a7c22d74a
commit
ae40b97528
2 changed files with 6 additions and 1 deletions
|
|
@ -200,7 +200,10 @@ def submit_items(userkey, items, chunksize=64):
|
|||
def submit_chunk():
|
||||
"""Submit the current accumulated fingerprint data."""
|
||||
log.info('submitting {0} fingerprints'.format(len(data)))
|
||||
acoustid.submit(API_KEY, userkey, data)
|
||||
try:
|
||||
acoustid.submit(API_KEY, userkey, data)
|
||||
except acoustid.AcoustidError as exc:
|
||||
log.warn(u'acoustid submission error: {}'.format(exc))
|
||||
del data[:]
|
||||
|
||||
for item in items:
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ Other stuff:
|
|||
MusicBrainz exceptions occur.
|
||||
* :doc:`/plugins/echonest_tempo`: Catch socket errors that are not handled by
|
||||
the Echo Nest library.
|
||||
* :doc:`/plugins/chroma`: Catch Acoustid Web service errors when submitting
|
||||
fingerprints.
|
||||
|
||||
1.1b2 (February 16, 2013)
|
||||
-------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue