- raise exception i case hendi cannot be enabled

git-svn-id: http://moon:8086/svn/projects/HendiControl@369 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2020-04-19 19:34:55 +00:00
parent 63bd991cb2
commit bcad769329
3 changed files with 45 additions and 37 deletions
+2 -2
View File
@@ -114,9 +114,9 @@ class HendiCtrl():
self.__write(req)
rsp = self.__read()
if "OK" not in rsp[0]:
raise Exception("Command not accepted ({})".format(rsp[1]))
raise Exception(rsp[1])
return rsp[1]
return rsp[1] == '1'
def getCapabilties(self):
return self.caps