From b828a0a9468a0eab33a45627743fc4484beba57e Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 28 Oct 2022 19:27:42 -0500 Subject: [PATCH] bug fix: plugin poorly handled --- index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.py b/index.py index 5ab66d6..9e9228d 100644 --- a/index.py +++ b/index.py @@ -28,7 +28,9 @@ def favicon(): @_app.route("/") def _index (): global _config - _args = {'system':_config['system'],'routes':_config['plugins']} + _args = {'system':_config['system']} + if 'plugins' in _config : + _args['routes']=_config['plugins'] try: _args['layout'] = _config['layout']