mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
check if file plugin was disabled
This commit is contained in:
parent
38eaca1104
commit
c496076505
@ -184,7 +184,8 @@ class Plugins:
|
||||
if settings.PLUGIN_TESTING or (plugin_db_setting and plugin_db_setting.active):
|
||||
# check if the plugin was blocked -> threw an error
|
||||
if disabled:
|
||||
if plugin.__name__ == disabled:
|
||||
# option1: package, option2: file-based
|
||||
if (plugin.__name__ == disabled) or (plugin.__module__==disabled):
|
||||
# errors are bad so disable the plugin in the database
|
||||
# but only if not in testing mode as that breaks in the GH pipeline
|
||||
log_plugin_error({plug_key: 'Disabled'}, 'init')
|
||||
|
Loading…
Reference in New Issue
Block a user