2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Ensure error is raised (#8849)

This commit is contained in:
Oliver 2025-01-07 17:07:07 +11:00 committed by GitHub
parent b42edbf2ab
commit 3a62bdd276
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -580,9 +580,7 @@ class PluginsRegistry:
except Exception as error: except Exception as error:
# Handle the error, log it and try again # Handle the error, log it and try again
if attempts == 0: if attempts == 0:
handle_error( handle_error(error, log_name='init', do_raise=True)
error, log_name='init', do_raise=settings.PLUGIN_TESTING
)
logger.exception( logger.exception(
'[PLUGIN] Encountered an error with %s:\n%s', '[PLUGIN] Encountered an error with %s:\n%s',