cleaner unknown command error
This commit is contained in:
parent
0b4c3cda8d
commit
2bf23abf0a
1 changed files with 2 additions and 3 deletions
|
@ -390,9 +390,8 @@ class UPnP:
|
||||||
|
|
||||||
if not hasattr(UPnP, method) or not hasattr(getattr(UPnP, method), "_cli"):
|
if not hasattr(UPnP, method) or not hasattr(getattr(UPnP, method), "_cli"):
|
||||||
fut.set_exception(UPnPError("\"%s\" is not a recognized command" % method))
|
fut.set_exception(UPnPError("\"%s\" is not a recognized command" % method))
|
||||||
wrapper = lambda : None
|
else:
|
||||||
|
loop.run_until_complete(wrapper())
|
||||||
loop.run_until_complete(wrapper())
|
|
||||||
try:
|
try:
|
||||||
result = fut.result()
|
result = fut.result()
|
||||||
except UPnPError as err:
|
except UPnPError as err:
|
||||||
|
|
Loading…
Reference in a new issue