more typos
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 2 Oct 2020 00:15:16 +0000 (02:15 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 2 Oct 2020 00:15:16 +0000 (02:15 +0200)
music_assistant/constants.py
music_assistant/helpers/musicbrainz.py
music_assistant/providers/fanarttv/__init__.py
music_assistant/providers/spotify/__init__.py
music_assistant/web/endpoints/config.py
music_assistant/web/endpoints/players.py
music_assistant/web/endpoints/websocket.py

index 5e9aab7fda8f6350398618431a06cb169e023005..e812196e43cb5febca6b0fed799cea4ccf0817ee 100755 (executable)
@@ -1,6 +1,6 @@
 """All constants for Music Assistant."""
 
-__version__ = "0.0.49"
+__version__ = "0.0.50"
 REQUIRED_PYTHON_VER = "3.7"
 
 # configuration keys/attributes
index b3fcc038b2b4aae57f12126e316264179f3eccca..d4d66dd1af2bde1b6735ed044d3b1c1e6c8f1077 100644 (file)
@@ -175,7 +175,7 @@ class MusicBrainz:
                     result = await response.json(loads=orjson.loads)
                 except (
                     aiohttp.client_exceptions.ContentTypeError,
-                    orjson.decoder.JSONDecodeError,
+                    orjson.JSONDecodeError,
                 ) as exc:
                     msg = await response.text()
                     LOGGER.error("%s - %s", str(exc), msg)
index fb43e7aacc9aaea43eeb59598413739df0747bb9..66bb605c7be3854f12076287b049d43541bd9a06 100755 (executable)
@@ -93,7 +93,7 @@ class FanartTvProvider(MetadataProvider):
                     result = await response.json(loads=orjson.loads)
                 except (
                     aiohttp.client_exceptions.ContentTypeError,
-                    orjson.decoder.JSONDecodeError,
+                    orjson.JSONDecodeError,
                 ):
                     LOGGER.error("Failed to retrieve %s", endpoint)
                     text_result = await response.text()
index ad5a4b90d531d1994a8033c586d2083eddce040f..a1f72cb8ff0a6bebc82aedeb198cb05b5767cb6f 100644 (file)
@@ -526,7 +526,7 @@ class SpotifyProvider(MusicProvider):
         stdout, _ = await spotty.communicate()
         try:
             result = orjson.loads(stdout)
-        except orjson.decoder.JSONDecodeError:
+        except orjson.JSONDecodeError:
             LOGGER.warning("Error while retrieving Spotify token!")
             result = None
         # transform token info to spotipy compatible format
index 9e01422598fc750498c54589f937c7351f1aeb54..6c21ac6fafa4a0d01ebdaa837b30368c06a434fd 100644 (file)
@@ -61,7 +61,7 @@ async def async_put_config(request: web.Request):
     entry_key = request.match_info.get("entry_key")
     try:
         new_value = await request.json(loads=orjson.loads)
-    except orjson.decoder.JSONDecodeError:
+    except orjson.JSONDecodeError:
         new_value = (
             request.app["mass"]
             .config[conf_base][conf_key]
index ee40ba66831dac43036647ac19581c476bcc67b7..5e776b71779bd9081b03b9aa70d28b628d6ffc26 100644 (file)
@@ -30,7 +30,7 @@ async def async_player_command(request: web.Request):
     cmd = request.match_info.get("cmd")
     try:
         cmd_args = await request.json(loads=orjson.loads)
-    except orjson.decoder.JSONDecodeError:
+    except orjson.JSONDecodeError:
         cmd_args = None
     player_cmd = getattr(request.app["mass"].players, f"async_cmd_{cmd}", None)
     if player_cmd and cmd_args is not None:
@@ -112,7 +112,7 @@ async def async_player_queue_cmd(request: web.Request):
     cmd = request.match_info.get("cmd")
     try:
         cmd_args = await request.json(loads=orjson.loads)
-    except orjson.decoder.JSONDecodeError:
+    except orjson.JSONDecodeError:
         cmd_args = None
     if cmd == "repeat_enabled":
         player_queue.repeat_enabled = cmd_args
index 43b110d7209a021d84110e1d09a4aa1a2af3aa6d..d26fa4ac4b29ab0de3d68195d98595cf9b5a7636 100644 (file)
@@ -41,7 +41,7 @@ async def async_websocket_handler(request: aiohttp.web.Request):
                 continue
             try:
                 data = msg.json(loads=orjson.loads)
-            except orjson.decoder.JSONDecodeError:
+            except orjson.JSONDecodeError:
                 await async_send_message(
                     "error",
                     'commands must be issued in json format \