diff --git a/fetcher/musicbrainz.py b/fetcher/musicbrainz.py index 45a731c..38be20f 100644 --- a/fetcher/musicbrainz.py +++ b/fetcher/musicbrainz.py @@ -49,8 +49,11 @@ def _do_request_mb(url): :return: The dictionary with the response or the status and his an error message """ - ratelimit() - response = _do_request(url) + while True: + ratelimit() + response = _do_request(url) + if response.status_code != 503: + break if response.status_code == 200: response = response.json(object_hook=sanitize_keys)