cleaner unknown command error

This commit is contained in:
Jack Robison 2018-10-29 14:41:48 -04:00
parent 0b4c3cda8d
commit 2bf23abf0a
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -390,8 +390,7 @@ class UPnP:
if not hasattr(UPnP, method) or not hasattr(getattr(UPnP, method), "_cli"):
fut.set_exception(UPnPError("\"%s\" is not a recognized command" % method))
wrapper = lambda : None
else:
loop.run_until_complete(wrapper())
try:
result = fut.result()