mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
add try to settings test
This commit is contained in:
parent
91464ad3d0
commit
3606bd8fe4
@ -30,11 +30,13 @@ class PluginAppConfig(AppConfig):
|
||||
|
||||
if not registry.is_loading:
|
||||
# this is the first startup
|
||||
from common.models import InvenTreeSetting
|
||||
|
||||
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
||||
# make sure all plugins are installed
|
||||
registry.install_plugin_file()
|
||||
try:
|
||||
from common.models import InvenTreeSetting
|
||||
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
||||
# make sure all plugins are installed
|
||||
registry.install_plugin_file()
|
||||
except:
|
||||
pass
|
||||
|
||||
# get plugins and init them
|
||||
registry.collect_plugins()
|
||||
|
Loading…
Reference in New Issue
Block a user