The best ChatGPT that $100 can buy.
Python
Remove redundant exception handling in chdir
Ram Rachum1f7ee5d3ce54
diff --git a/nanochat/execution.py b/nanochat/execution.pyindex cda179d..181ddb2 100644--- a/nanochat/execution.py+++ b/nanochat/execution.py@@ -127,8 +127,6 @@ def chdir(root):os.chdir(root)try:yield- except BaseException as exc:- raise excfinally:os.chdir(cwd)