We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cba6e6 commit 6c81931Copy full SHA for 6c81931
1 file changed
src/datacustomcode/deploy.py
@@ -18,6 +18,7 @@
18
import json
19
import os
20
import shutil
21
+import sys
22
import tempfile
23
import time
24
from typing import (
@@ -163,8 +164,12 @@ def prepare_dependency_archive(directory: str) -> None:
163
164
165
with tempfile.TemporaryDirectory() as temp_dir:
166
logger.info("Building dependencies archive")
- shutil.copy("requirements.txt", temp_dir)
167
- shutil.copy("build_native_dependencies.sh", temp_dir)
+ try:
168
+ shutil.copy("requirements.txt", temp_dir)
169
+ shutil.copy("build_native_dependencies.sh", temp_dir)
170
+ except FileNotFoundError as e:
171
+ logger.error(f"Error copying files: {e}")
172
+ sys.exit(1)
173
cmd = (
174
f"{PLATFORM_ENV_VAR} docker run --rm "
175
f"-v {temp_dir}:/workspace "
0 commit comments