From a8336d75921d094011694dfd4613d3a0cd81c136 Mon Sep 17 00:00:00 2001 From: tazlin Date: Wed, 4 Oct 2023 09:47:55 -0400 Subject: [PATCH] fix: warn on bridgeData not found --- run_worker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_worker.py b/run_worker.py index 68c042a7..9cdc4faa 100644 --- a/run_worker.py +++ b/run_worker.py @@ -25,6 +25,9 @@ def main(ctx: BaseContext) -> None: except Exception as e: logger.debug(e) + if "No such file or directory" in str(e): + logger.error(f"Could not find {BRIDGE_CONFIG_FILENAME}. Please create it and try again.") + if isinstance(e, ValidationError): # Print a list of fields that failed validation logger.error(f"The following fields in {BRIDGE_CONFIG_FILENAME} failed validation:")