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,9 +390,8 @@ 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
loop.run_until_complete(wrapper())
else:
loop.run_until_complete(wrapper())
try:
result = fut.result()
except UPnPError as err: