From 4db3c91924fe97cc4c37757af5930989eda3886b Mon Sep 17 00:00:00 2001 From: Antonio de la Rosa Date: Wed, 20 Jan 2016 01:02:09 +0100 Subject: [PATCH] Little fix for show info about error in modules --- paramecio/modules/admin/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paramecio/modules/admin/index.py b/paramecio/modules/admin/index.py index 9b1e587..8499fe7 100644 --- a/paramecio/modules/admin/index.py +++ b/paramecio/modules/admin/index.py @@ -1,5 +1,6 @@ #!/usr/bin/python3 +import traceback, sys from paramecio.citoplasma.mtemplates import ptemplate from paramecio.modules.admin.models.admin import UserAdmin from paramecio.citoplasma.i18n import load_lang, I18n @@ -104,6 +105,11 @@ def home(module='', submodule=''): except ImportError: + print("Exception in user code:") + print("-"*60) + traceback.print_exc(file=sys.stdout) + print("-"*60) + return "No exists admin module" content_index=new_module.admin(t)