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)
| 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 | """返回供嵌入到其他消息中的数据,可以设置一些默认值""" |
nothing calls this directly
no test coverage detected