diff options
author | pechatnov <pechatnov@yandex-team.com> | 2024-12-28 16:08:28 +0300 |
---|---|---|
committer | pechatnov <pechatnov@yandex-team.com> | 2024-12-28 16:30:51 +0300 |
commit | b36c4920ee2e83bfbd2d2761ed0e574125c73426 (patch) | |
tree | 546940758872a6d086251f02444e43945aae050e | |
parent | e322e4ac84dbd68b64cbe1d0e5b9c242e0f51161 (diff) | |
download | ydb-b36c4920ee2e83bfbd2d2761ed0e574125c73426.tar.gz |
More info in exception when downloaded file is not found
commit_hash:3452b7830e9949d5c55022ea82b982d3e7e040d0
-rwxr-xr-x | build/scripts/fetch_from.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py index 0e543c810a..d9ef87d5f5 100755 --- a/build/scripts/fetch_from.py +++ b/build/scripts/fetch_from.py @@ -396,6 +396,8 @@ def process(fetched_file, file_name, args, remove=True): logging.info('Renaming %s to %s', src, dst) if os.path.exists(dst): raise ResourceUnpackingError("Target file already exists ({} -> {})".format(src, dst)) + if not os.path.exists(src): + raise ResourceUnpackingError("Source file does not exist ({} in {})".format(src, os.getcwd())) if remove: rename_or_copy_and_remove(src, dst) else: |