Close the session and cleanup resources
(self)
| 456 | raise |
| 457 | |
| 458 | def close(self): |
| 459 | """Close the session and cleanup resources""" |
| 460 | if hasattr(self, 'session') and self.session: |
| 461 | try: |
| 462 | self.session.close() |
| 463 | except Exception as e: |
| 464 | logger.debug(f"Error closing XC session: {e}") |
| 465 | |
| 466 | def __enter__(self): |
| 467 | """Enter the context manager""" |
no outgoing calls
no test coverage detected