Show user message when config KeyErrors

Formatting
This commit is contained in:
nathom 2021-04-12 15:50:41 -07:00
parent 8ccf74fd76
commit 0367a04137
5 changed files with 46 additions and 25 deletions

View file

@ -489,7 +489,7 @@ class TidalClient(ClientInterface):
try:
manifest = json.loads(base64.b64decode(resp["manifest"]).decode("utf-8"))
except KeyError:
raise Exception(resp['userMessage'])
raise Exception(resp["userMessage"])
logger.debug(manifest)
return {