From ebee3f55684889d27f56b44cd5575da4ee45763e Mon Sep 17 00:00:00 2001 From: hugovk Date: Sun, 30 Oct 2016 10:54:35 +0200 Subject: [PATCH] Error can be Libre.fm or Last.fm --- pylast/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 7b30a52..a0d5df8 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -1681,15 +1681,15 @@ class WSError(Exception): class MalformedResponseError(Exception): - """Exception conveying a malformed response from Last.fm.""" + """Exception conveying a malformed response from the music network.""" def __init__(self, network, underlying_error): self.network = network self.underlying_error = underlying_error def __str__(self): - return "Malformed response from Last.fm. Underlying error: %s" % str( - self.underlying_error) + return "Malformed response from {}. Underlying error: {}".format( + self.network.name, str(self.underlying_error)) class NetworkError(Exception):