Better handling of stack traces and exc_info (#6253)

This commit is contained in:
Robert Brennan
2025-01-14 10:22:39 -05:00
committed by GitHub
parent 37b7173481
commit 4da812c781
16 changed files with 41 additions and 50 deletions

View File

@@ -195,8 +195,8 @@ class BrowserEnv:
self.process.join(5) # Wait for the process to terminate
self.agent_side.close()
self.browser_side.close()
except Exception:
logger.error('Encountered an error when closing browser env', exc_info=True)
except Exception as e:
logger.error(f'Encountered an error when closing browser env: {e}')
@staticmethod
def image_to_png_base64_url(