2016-06-04 | Paul Boddie | raw files shortlog changelog graph | Moved the schedule call inside the try...finally statement to ensure that failure causes locks to be released, since the start_scheduling call which acquires locks occurs inside apply_scheduling_functions (which is called by the schedule method). | |
imiptools/handlers/resource.py (file) |
1.1 --- a/imiptools/handlers/resource.py Sat Jun 04 13:52:46 2016 +0200 1.2 +++ b/imiptools/handlers/resource.py Sat Jun 04 17:16:36 2016 +0200 1.3 @@ -94,9 +94,9 @@ 1.4 1.5 # Attempt to schedule the event. 1.6 1.7 - scheduled, description = self.schedule() 1.8 + try: 1.9 + scheduled, description = self.schedule() 1.10 1.11 - try: 1.12 # Update the participation of the resource in the object. 1.13 # Update free/busy information. 1.14