Browse Source

HUE-8968 [core] Fix give previous traceback to PopupException

Jean-Francois Desjeans Gauthier 6 years ago
parent
commit
675aa91588
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/lib/exceptions_renderable.py

+ 1 - 1
desktop/core/src/desktop/lib/exceptions_renderable.py

@@ -33,7 +33,7 @@ LOG = logging.getLogger(__name__)
 
 
 def raise_popup_exception(message, title="Error", detail=None, error_code=500):
 def raise_popup_exception(message, title="Error", detail=None, error_code=500):
   tb = sys.exc_info()
   tb = sys.exc_info()
-  raise PopupException(message, title=title, detail=detail, error_code=error_code, traceback=traceback.extract_tb(tb[2]))
+  raise PopupException(message, title=title, detail=detail, error_code=error_code, tb=traceback.extract_tb(tb[2]))
 
 
 class PopupException(Exception):
 class PopupException(Exception):
   """
   """