From 8576fbbade715396da3255b97a3bfcbbb42e50d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:31:59 +1100 Subject: [PATCH] Ensure error is raised (#8849) (#8850) (cherry picked from commit 3a62bdd2762e36bb22dd06edc3eacc626a4feff3) Co-authored-by: Oliver --- src/backend/InvenTree/plugin/registry.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/InvenTree/plugin/registry.py b/src/backend/InvenTree/plugin/registry.py index f45c080f10..77d5810848 100644 --- a/src/backend/InvenTree/plugin/registry.py +++ b/src/backend/InvenTree/plugin/registry.py @@ -579,9 +579,7 @@ class PluginsRegistry: except Exception as error: # Handle the error, log it and try again if attempts == 0: - handle_error( - error, log_name='init', do_raise=settings.PLUGIN_TESTING - ) + handle_error(error, log_name='init', do_raise=True) logger.exception( '[PLUGIN] Encountered an error with %s:\n%s',