- fixed hendiCtrl exceptions
This commit is contained in:
@@ -118,6 +118,8 @@ class HendiCtrl:
|
|||||||
def cmd(self, req):
|
def cmd(self, req):
|
||||||
self.__write(req)
|
self.__write(req)
|
||||||
rsp = self.__read()
|
rsp = self.__read()
|
||||||
|
if len(rsp) == 0:
|
||||||
|
raise HendiException(f"Communication error")
|
||||||
if "OK" not in rsp[0]:
|
if "OK" not in rsp[0]:
|
||||||
raise HendiException(f"Communication error")
|
raise HendiException(f"Communication error")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user