X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fsimafm.py;h=5e6ad106e8e969f2c0f03d7e34a118a78d3f72ab;hb=bed2018b162e3493dd5a5a7fe5433af2005a7d0a;hp=3210fdcdf7a4beb8dca96755e0c0470b849f92d7;hpb=78a694ddcd2a6ecc8b2b1fd3c74ee2d938707305;p=mpd-sima.git diff --git a/sima/lib/simafm.py b/sima/lib/simafm.py index 3210fdc..5e6ad10 100644 --- a/sima/lib/simafm.py +++ b/sima/lib/simafm.py @@ -77,7 +77,7 @@ class SimaFM: timeout=SOCKET_TIMEOUT) #self.__class__.ratelimit = req.headers.get('x-ratelimit-remaining', None) if req.status_code is not 200: - raise WSHTTPError(req.status_code) + raise WSHTTPError('{0.status_code}: {0.reason}'.format(req)) self.current_element = req.json() self._controls_answer() if self.caching: