Skip to content

Commit 3828e03

Browse files
minor error handling fix for python scripts in index creation scripts
1 parent ad5fed2 commit 3828e03

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

infra/scripts/run_create_index_scripts.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,18 @@ pip install -r infra/scripts/index_scripts/requirements.txt
6363
echo "Requirements installed"
6464

6565
# Run the scripts
66-
echo "Running the scripts"
66+
echo "Running the pyhton scripts"
6767
echo "Creating the search index"
6868
python infra/scripts/index_scripts/01_create_search_index.py
69+
if [ $? -ne 0 ]; then
70+
echo "Error: 01_create_search_index.py failed."
71+
exit 1
72+
fi
73+
6974
echo "Processing the data"
7075
python infra/scripts/index_scripts/02_process_data.py
76+
if [ $? -ne 0 ]; then
77+
echo "Error: 02_process_data.py failed."
78+
exit 1
79+
fi
7180
echo "Scripts completed"

0 commit comments

Comments
 (0)