Adrian Sampson committed 99cb977

chroma: catch acoustid exceptions during submit

Comments (0)

Files changed (2)


     def submit_chunk():
         """Submit the current accumulated fingerprint data."""'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:


   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)