mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
Merge pull request #1272 from tomjaspers/master
Display clear error message when MusicBrainz is unreachable
This commit is contained in:
commit
2496867daf
1 changed files with 2 additions and 0 deletions
|
|
@ -41,6 +41,8 @@ class MusicBrainzAPIError(util.HumanReadableException):
|
|||
"""
|
||||
def __init__(self, reason, verb, query, tb=None):
|
||||
self.query = query
|
||||
if isinstance(reason, musicbrainzngs.WebServiceError):
|
||||
reason = 'MusicBrainz not reachable'
|
||||
super(MusicBrainzAPIError, self).__init__(reason, verb, tb)
|
||||
|
||||
def get_message(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue