From 2632cd6b675b618f5d46e4180474415b429085f4 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:42:16 +0200 Subject: [PATCH] g.extention: if copied files exists do not print warning message (#3053) --- scripts/g.extension/g.extension.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/g.extension/g.extension.py b/scripts/g.extension/g.extension.py index 855a550a77e..5a45b806625 100644 --- a/scripts/g.extension/g.extension.py +++ b/scripts/g.extension/g.extension.py @@ -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( _(