Skip to content

Commit

Permalink
g.extention: if copied files exists do not print warning message (#3053)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Jun 19, 2023
1 parent 02cdc8c commit 2632cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/g.extension/g.extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,8 @@ def check_style_file(name):

try:
shutil.copyfile(dist_file, addons_file)
except shutil.SameFileError:
pass
except OSError as error:
grass.warning(
_(
Expand Down

0 comments on commit 2632cd6

Please sign in to comment.