Skip to content

Commit ead721f

Browse files
committed
Remove try block with except FileExistsError that isn't needed
1 parent 4aea4fd commit ead721f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tests/test_diffusion.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,10 @@ def setUpClass(cls):
7777
and not os.path.exists(os.path.join(script_dir, filename))
7878
and os.path.isdir(os.path.join(f"{script_dir}/../examples", filename))
7979
):
80-
try:
81-
os.symlink(
82-
os.path.join(f"{script_dir}/../examples", filename),
83-
os.path.join(script_dir, filename),
84-
)
85-
except FileExistsError:
86-
pass
80+
os.symlink(
81+
os.path.join(f"{script_dir}/../examples", filename),
82+
os.path.join(script_dir, filename),
83+
)
8784

8885
for submission in submissions:
8986
cls._write_command(submission, cls.out_f)

0 commit comments

Comments
 (0)