Skip to content

Commit d03dd00

Browse files
authored
Merge pull request #100 from sameeul/fix_SameFileError
Catch exception while copyinng
2 parents ff24453 + 41a888f commit d03dd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jgo/jgo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def resolve_dependencies(
710710
jar_file_in_workspace,
711711
link_type=link_type,
712712
)
713-
except FileExistsError:
713+
except (FileExistsError, shutil.SameFileError):
714714
# Do not throw exception if target file exists.
715715
pass
716716
pathlib.Path(build_success_file).touch(exist_ok=True)

0 commit comments

Comments
 (0)