Little fix for show info about error in modules
This commit is contained in:
parent
28379e1383
commit
4db3c91924
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue