Workaround, some still needs to be done on the handling of disconnects

This commit is contained in:
dandaedre 2021-09-29 19:35:21 +02:00
parent e8c8f9d713
commit e40010efab
1 changed files with 6 additions and 1 deletions

View File

@ -97,7 +97,12 @@ class VP(object):
def getStatus(self):
_status.acquire()
stat=openSTATUS(self.status)
try:
stat=openSTATUS(self.status)
except Exception as e:
print("[PRM:ERROR] Can't get status of vp",str(self))
stat=None
if stat==None:
stat=None,None,None
self.st_shutter,self.st_osd,self.st_input=stat