mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +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:
|
if not registry.is_loading:
|
||||||
# this is the first startup
|
# this is the first startup
|
||||||
|
try:
|
||||||
from common.models import InvenTreeSetting
|
from common.models import InvenTreeSetting
|
||||||
|
|
||||||
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
if InvenTreeSetting.get_setting('PLUGIN_ON_STARTUP'):
|
||||||
# make sure all plugins are installed
|
# make sure all plugins are installed
|
||||||
registry.install_plugin_file()
|
registry.install_plugin_file()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
# get plugins and init them
|
# get plugins and init them
|
||||||
registry.collect_plugins()
|
registry.collect_plugins()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user