MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / __exit__

Method __exit__

pywebio/io_ctrl.py:106–115  ·  view source on GitHub ↗

If this method returns True, it means that the context manager can handle the exception, so that the with statement terminates the propagation of the exception

(self, exc_type, exc_val, exc_tb)

Source from the content-addressed store, hash-verified

104 return self.container_dom_id
105
106 def __exit__(self, exc_type, exc_val, exc_tb):
107 """
108 If this method returns True,
109 it means that the context manager can handle the exception,
110 so that the with statement terminates the propagation of the exception
111 """
112 get_current_session().pop_scope()
113 if self.after_exit:
114 self.after_exit()
115 return False # Propagate Exception
116
117 def embed_data(self):
118 """返回供嵌入到其他消息中的数据,可以设置一些默认值"""

Callers

nothing calls this directly

Calls 2

get_current_sessionFunction · 0.85
pop_scopeMethod · 0.80

Tested by

no test coverage detected