Method
__exit__
(self, exc_type, exc_value, traceback)
Source from the content-addressed store, hash-verified
| 1136 | return self |
| 1137 | |
| 1138 | def __exit__(self, exc_type, exc_value, traceback): |
| 1139 | try: |
| 1140 | self.close() |
| 1141 | except AttributeError: |
| 1142 | # maybe eager thread cleanup upon external error |
| 1143 | if (exc_type, exc_value, traceback) == (None, None, None): |
| 1144 | raise |
| 1145 | warn("AttributeError ignored", TqdmWarning, stacklevel=2) |
| 1146 | |
| 1147 | def __del__(self): |
| 1148 | self.close() |
Tested by
no test coverage detected