mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 04:12:13 +00:00
Remove redundant exception handling in chdir
This commit is contained in:
parent
4346536ab2
commit
1f7ee5d3ce
|
|
@ -127,8 +127,6 @@ def chdir(root):
|
|||
os.chdir(root)
|
||||
try:
|
||||
yield
|
||||
except BaseException as exc:
|
||||
raise exc
|
||||
finally:
|
||||
os.chdir(cwd)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user