From 1f7ee5d3ce540405274eca6dce8717f74f54cc8b Mon Sep 17 00:00:00 2001 From: Ram Rachum Date: Thu, 16 Oct 2025 15:40:10 +0300 Subject: [PATCH] Remove redundant exception handling in chdir --- nanochat/execution.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/nanochat/execution.py b/nanochat/execution.py index 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 exc finally: os.chdir(cwd)