Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

cr

Talor Abramovichf6b665dff095
diff --git a/sweagent/environment/swe_env.py b/sweagent/environment/swe_env.py
index bc6b55a5..c48d780d 100644
--- a/sweagent/environment/swe_env.py
+++ b/sweagent/environment/swe_env.py
@@ -634,8 +634,8 @@ class SWEEnv(gym.Env):
self.interactive_session.terminate()
except KeyboardInterrupt:
raise
- except:
- self.logger.warning("Failed to stop interactive session")
+ except Exception as e:
+ self.logger.warning("Failed to stop interactive session: %s", str(e))
else:
self.logger.info("Interactive session stopped")
if self.container_obj is None: