Remove redundant exception handling in chdir

This commit is contained in:
Ram Rachum
2025-10-16 15:40:10 +03:00
committed by GitHub
parent 4346536ab2
commit 1f7ee5d3ce
-2
View File
@@ -127,8 +127,6 @@ def chdir(root):
os.chdir(root)
try:
yield
except BaseException as exc:
raise exc
finally:
os.chdir(cwd)