Merge pull request #10555 from f321x/nwc_handle_missing_params
plugin: nwc: handle missing params dict in request
This commit is contained in:
@@ -344,7 +344,7 @@ class NWCServer(Logger, EventListener):
|
||||
content = json.loads(content)
|
||||
if not isinstance(content, dict):
|
||||
raise Exception("malformed content, not dict")
|
||||
params: dict = content['params']
|
||||
params: dict = content.get('params', {})
|
||||
if not isinstance(params, dict):
|
||||
raise Exception("malformed params, not dict")
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user