Skip to content

Commit ff80183

Browse files
bottlerfacebook-github-bot
authored andcommitted
resources fix
Summary: I don't know why RE tests sometimes fail here, but maybe it's a race condition. If that's right, this should fix it. Reviewed By: shapovalov Differential Revision: D46020054 fbshipit-source-id: 20b746b09ad9bd77c2601ac681047ccc6cc27ed9
1 parent b046259 commit ff80183

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/implicitron/common_resources.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ def _provide_torchvision_weights(par_path: str, filename: str) -> None:
136136
dest.mkdir(parents=True)
137137

138138
if not (dest / filename).is_symlink():
139-
(dest / filename).symlink_to(source)
139+
try:
140+
(dest / filename).symlink_to(source)
141+
except FileExistsError:
142+
print("FileExistsError: no symlink created.")
140143

141144

142145
def provide_lpips_vgg() -> None:

0 commit comments

Comments
 (0)