##// END OF EJS Templates
Added try/finally
Jonathan Frederic -
Show More
@@ -205,8 +205,10 b' class Connect(object):'
205 @contextlib.contextmanager
205 @contextlib.contextmanager
206 def _busy_updating(self):
206 def _busy_updating(self):
207 self.updating = True
207 self.updating = True
208 yield
208 try:
209 self.updating = False
209 yield
210 finally:
211 self.updating = False
210
212
211 def _update(self, name, old, new):
213 def _update(self, name, old, new):
212 if self.updating:
214 if self.updating:
General Comments 0
You need to be logged in to leave comments. Login now