Skip to content

Commit

Permalink
catch exception while copyinng
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored and ctrueden committed Jul 22, 2024
1 parent ff24453 commit 41a888f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jgo/jgo.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def resolve_dependencies(
jar_file_in_workspace,
link_type=link_type,
)
except FileExistsError:
except (FileExistsError, shutil.SameFileError):
# Do not throw exception if target file exists.
pass
pathlib.Path(build_success_file).touch(exist_ok=True)
Expand Down

0 comments on commit 41a888f

Please sign in to comment.