mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 00:23:33 +01:00
echonest: Log on retries (for mersault_)
This commit is contained in:
parent
945e30d155
commit
af3bdd8a66
1 changed files with 3 additions and 0 deletions
|
|
@ -137,6 +137,9 @@ class EchonestMetadataPlugin(plugins.BeetsPlugin):
|
||||||
except pyechonest.util.EchoNestAPIError as e:
|
except pyechonest.util.EchoNestAPIError as e:
|
||||||
if e.code == 3:
|
if e.code == 3:
|
||||||
# reached access limit per minute
|
# reached access limit per minute
|
||||||
|
log.debug(u'echonest: rate-limited on try {0}; '
|
||||||
|
u'waiting {1} seconds'
|
||||||
|
.format(i + 1, RETRY_INTERVAL))
|
||||||
time.sleep(RETRY_INTERVAL)
|
time.sleep(RETRY_INTERVAL)
|
||||||
elif e.code == 5:
|
elif e.code == 5:
|
||||||
# specified identifier does not exist
|
# specified identifier does not exist
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue