log errors when fingerprinting fails

This commit is contained in:
Adrian Sampson 2012-02-26 17:51:19 -08:00
parent 8d9c324b61
commit 8fca659392
2 changed files with 5 additions and 0 deletions

View file

@ -52,6 +52,10 @@ def acoustid_match(path, metadata=None):
try:
res = acoustid.match(API_KEY, path, meta='recordings releases',
parse=False)
except acoustid.FingerprintGenerationError, exc:
log.error('fingerprinting of %s failed: %s' %
(repr(path), str(exc)))
return None
except acoustid.AcoustidError, exc:
log.debug('fingerprint matching %s failed: %s' %
(repr(path), str(exc)))

View file

@ -45,6 +45,7 @@ lays the foundation for more features to come in the next couple of releases.
* The import log file is now flushed and closed properly so that it can be used
to monitor import progress, even when the import crashes.
* Duplicate track matches are no longer shown when autotagging singletons.
* The ``chroma`` plugin now logs errors when fingerprinting fails.
* Fix a bug in the ``rewrite`` plugin that broke the use of multiple rules for
a single field.
* Fix a crash with non-ASCII characters in bytestring metadata fields (e.g.,