From 0c52824305c95d99bcba372ba048a3603d2fcbbf Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Mon, 3 Jun 2024 12:02:11 -0600 Subject: [PATCH] Put exceptions back for missing backends Signed-off-by: Travis F. Collins --- telemetry/dev/core.py | 6 ++---- tests/vpx_test_data/test_plugin.py | 0 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 tests/vpx_test_data/test_plugin.py diff --git a/telemetry/dev/core.py b/telemetry/dev/core.py index 3e0627d..3e45a70 100644 --- a/telemetry/dev/core.py +++ b/telemetry/dev/core.py @@ -46,14 +46,12 @@ def __init__( if "mongo" in extracted_config: self.mongo = self.setup_mongo(extracted_config["mongo"]) else: - ... - # raise Exception("No MongoDB configuration found") + raise Exception("No MongoDB configuration found") if "minio" in extracted_config: self.minio = self.setup_minio(extracted_config["minio"]) else: - ... - # raise Exception("No Minio configuration found") + raise Exception("No Minio configuration found") def setup_mongo(self, config): """Setup MongoDB connection.""" diff --git a/tests/vpx_test_data/test_plugin.py b/tests/vpx_test_data/test_plugin.py deleted file mode 100644 index e69de29..0000000