diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 8b987d70c5..e181d130fa 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -127,7 +127,12 @@ translated_javascript_urls = [ # Integration plugin urls interation_urls = [] -if settings.TESTING or InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'): +plugin_url_enabled = False +try: + plugin_url_enabled = InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL') +except Exception as _e: + print(_e) +if settings.TESTING or plugin_url_enabled: for plugin in settings.INTEGRATION_PLUGINS.values(): if plugin.mixin_enabled('urls'): interation_urls.append(plugin.urlpatterns)