From 815ea4b0832fc35707dd80b20e7c9a6ebe131956 Mon Sep 17 00:00:00 2001 From: Ryan Herbst Date: Thu, 26 Sep 2024 11:28:17 -0700 Subject: [PATCH] Update linting --- python/pyrogue/_Root.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/python/pyrogue/_Root.py b/python/pyrogue/_Root.py index abc644b4b..721742920 100644 --- a/python/pyrogue/_Root.py +++ b/python/pyrogue/_Root.py @@ -484,17 +484,12 @@ def updateGroup(self, period=0): # At with call try: - self._updateTrack[tid].increment(period) - except: + self._updateTrack[tid].increment(period) + except Exception: with self._updateLock: self._updateTrack[tid] = UpdateTracker(self._updateQueue) self._updateTrack[tid].increment(period) - #if tid not in self._updateTrack: - # self._updateTrack[tid] = UpdateTracker(self._updateQueue) - - #self._updateTrack[tid].increment(period) - try: yield finally: @@ -1008,15 +1003,11 @@ def _queueUpdates(self,var): try: self._updateTrack[tid].update(var) - except: + except Exception: with self._updateLock: self._updateTrack[tid] = UpdateTracker(self._updateQueue) self._updateTrack[tid].update(var) - #if tid not in self._updateTrack: - # self._updateTrack[tid] = UpdateTracker(self._updateQueue) - #self._updateTrack[tid].update(var) - # Perform update on each variable and recurse the listeners list def _updateVarWithRecurse(self, v):