Skip to content

Commit e587d6c

Browse files
Fixed an issue with interactive sessions (#678)
- Interactive sessions would not connect to an S3 bucket - Decreased from exception to warning when local directory is not found
1 parent 0b189de commit e587d6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

silnlp/common/environment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ def resolve_data_dir(self) -> Path:
137137
LOGGER.info(f"Using workspace: {sil_nlp_data_path} as per environment variable SIL_NLP_DATA_PATH.")
138138
return Path(sil_nlp_data_path)
139139
else:
140-
raise Exception(
140+
LOGGER.warning(
141141
f"The path defined by environment variable SIL_NLP_DATA_PATH ({sil_nlp_data_path}) is not a "
142-
+ "real directory."
142+
+ "local directory."
143143
)
144144

145145
gutenberg_path = Path("G:/Shared drives/Gutenberg")

0 commit comments

Comments
 (0)