INNER CODE UNIT · Python
__adel__
Vinyzu/Botright · botright/botright.py:168
async def __adel__(self) -> None:
"""
Cleanup method called when the Botright instance is closed.
Closes all associated browser instances and stops the Playwright engine.
"""
for obj in self.stoppable:
try:
await obj.close()
except Exception:
pass
try:
await self.playwright.stop()
except Exception:
pass
for temp_dir in self.temp_dirs:
if os.path.exists(temp_dir.name):