Skip to content

Commit 7980807

Browse files
committed
Ignore errors from conda env activation
1 parent f098bac commit 7980807

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/executeJupyterNotebook.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Requires juypter nbconvert,operatingSystemFunctions.sh
1919

2020
# Fail on any error ("-e" = exit on first error, "-o pipefail" exist on errors within piped commands)
21-
set -eo pipefail
21+
set -o errexit -o pipefail
2222

2323
ENABLE_JUPYTER_NOTEBOOK_PDF_GENERATION=${ENABLE_JUPYTER_NOTEBOOK_PDF_GENERATION:-""} # Enable PDF generation for Jupyter Notebooks if set to any non empty value e.g. "true"
2424

@@ -83,7 +83,7 @@ if [ ! -f "${jupyter_notebook_file_path}/.env" ] ; then
8383
fi
8484

8585
# Create and activate (if necessary) Conda environment as defined in environment variable CODEGRAPH_CONDA_ENVIRONMENT (default "codegraph")
86-
source "${SCRIPTS_DIR}/activateCondaEnvironment.sh"
86+
source "${SCRIPTS_DIR}/activateCondaEnvironment.sh" || true
8787

8888
# Execute the Jupyter Notebook and write it to the output file name
8989
jupyter nbconvert --to notebook \

0 commit comments

Comments
 (0)