errors fail whole plugins now so no saving

This commit is contained in:
Matthias 2022-05-15 18:09:05 +02:00
parent 45d70737bd
commit f4fbd57e6e
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -300,7 +300,6 @@ class PluginsRegistry:
# Errors are bad so disable the plugin in the database # Errors are bad so disable the plugin in the database
if not settings.PLUGIN_TESTING: # pragma: no cover if not settings.PLUGIN_TESTING: # pragma: no cover
plugin_db_setting.active = False plugin_db_setting.active = False
# TODO save the error to the plugin
plugin_db_setting.save(no_reload=True) plugin_db_setting.save(no_reload=True)
# Add to inactive plugins so it shows up in the ui # Add to inactive plugins so it shows up in the ui