Show trace on App import exceptions
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
* Change how the HOME_VIEW setting is defined.
|
* Change how the HOME_VIEW setting is defined.
|
||||||
* Remove the role permission grant and revoke permission.
|
* Remove the role permission grant and revoke permission.
|
||||||
* Split trashed document views into their own module.
|
* 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)
|
3.1.11 (2019-04-XX)
|
||||||
===================
|
===================
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ from __future__ import absolute_import, unicode_literals
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
import traceback
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
from kombu import Exchange, Queue
|
from kombu import Exchange, Queue
|
||||||
@@ -76,6 +78,8 @@ class MayanAppConfig(apps.AppConfig):
|
|||||||
'Import time error when running AppConfig.ready() of app '
|
'Import time error when running AppConfig.ready() of app '
|
||||||
'"%s".', self.name
|
'"%s".', self.name
|
||||||
)
|
)
|
||||||
|
exc_info = sys.exc_info()
|
||||||
|
traceback.print_exception(*exc_info)
|
||||||
raise exception
|
raise exception
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user