default with empty tag list for listeners that return None
This commit is contained in:
parent
60e18c88f0
commit
75107ff04d
1 changed files with 1 additions and 1 deletions
2
nwcp.py
2
nwcp.py
|
|
@ -338,7 +338,7 @@ class NWCServiceProvider:
|
|||
for result in results:
|
||||
r = result[0]
|
||||
e = result[1]
|
||||
t = result[2] if len(result) > 2 else None
|
||||
t = result[2] if len(result) > 2 else []
|
||||
out = {"result": r, "error": e, "tags": t}
|
||||
outs.append(out)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue