From e40010efab6463e304b96cdcf3292b5a4d8d5b0c Mon Sep 17 00:00:00 2001 From: dandaedre Date: Wed, 29 Sep 2021 19:35:21 +0200 Subject: [PATCH] Workaround, some still needs to be done on the handling of disconnects --- request.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/request.py b/request.py index d2b1615..f45a011 100644 --- a/request.py +++ b/request.py @@ -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