cleaner unknown command error
This commit is contained in:
parent
0b4c3cda8d
commit
2bf23abf0a
1 changed files with 2 additions and 3 deletions
|
@ -390,8 +390,7 @@ 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()
|
||||||
|
|
Loading…
Reference in a new issue