From 8a4a875947e66646fd7e47b2ef53d6775632c7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Mon, 22 Apr 2024 09:07:13 +0200 Subject: [PATCH] Fix error handling when checking for changes in the database in the scheduler --- src/scheduler/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/scheduler/main.py b/src/scheduler/main.py index 387f6ac21..ed4167e30 100644 --- a/src/scheduler/main.py +++ b/src/scheduler/main.py @@ -719,8 +719,7 @@ if __name__ == "__main__": changes = db.check_changes() if isinstance(changes, str): - logger.error(f"An error occurred when checking for changes in the database : {changes}") - stop(1) + raise Exception(f"An error occurred when checking for changes in the database : {changes}") # check if the plugins have changed since last time if changes["pro_plugins_changed"]: