Show trace on App import exceptions

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-12 01:40:09 -04:00
parent 0188afcd54
commit 5ff15895b6
2 changed files with 5 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
* Change how the HOME_VIEW setting is defined.
* Remove the role permission grant and revoke permission.
* Split trashed document views into their own module.
* Show entire sys trace when an App import exception is raised.
3.1.11 (2019-04-XX)
===================

View File

@@ -3,6 +3,8 @@ from __future__ import absolute_import, unicode_literals
from datetime import timedelta
import logging
import os
import sys
import traceback
import warnings
from kombu import Exchange, Queue
@@ -76,6 +78,8 @@ class MayanAppConfig(apps.AppConfig):
'Import time error when running AppConfig.ready() of app '
'"%s".', self.name
)
exc_info = sys.exc_info()
traceback.print_exception(*exc_info)
raise exception