##// END OF EJS Templates
Added check on widget close to make sure comm isn't already none.
Jonathan Frederic -
Show More
@@ -98,8 +98,11 b' class Widget(LoggingConfigurable):'
98 """Close method. Closes the widget which closes the underlying comm.
98 """Close method. Closes the widget which closes the underlying comm.
99 When the comm is closed, all of the widget views are automatically
99 When the comm is closed, all of the widget views are automatically
100 removed from the frontend."""
100 removed from the frontend."""
101 self._comm.close()
101 try:
102 del self._comm
102 self._comm.close()
103 del self._comm
104 except:
105 pass # Comm doesn't exist and/or is already closed.
103
106
104
107
105 # Properties
108 # Properties
General Comments 0
You need to be logged in to leave comments. Login now