convert a response to list if instance of set
This commit is contained in:
parent
ac71bd4977
commit
95cb214bd4
@ -91,6 +91,8 @@ class MpdFrontend(object):
|
||||
response = []
|
||||
if result is None:
|
||||
result = []
|
||||
elif isinstance(result, set):
|
||||
result = list(result)
|
||||
elif not isinstance(result, list):
|
||||
result = [result]
|
||||
for line in flatten(result):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user