def __exit__(self, type: Any, value: Any, traceback: Any) -> None:
if self.shape[<NUM_LIT:0>] == <NUM_LIT:0> or self.shape[<NUM_LIT:1>] == <NUM_LIT:0>:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>if not self.closed:<EOL><INDENT>self.close(True)<EOL><DEDENT>
Context manager, to support "with loompy.connect(..)" construct