Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #341 from tiagocoutinho/issue-340
Browse files Browse the repository at this point in the history
Fix #340: build DevFailed origin from format_exception instead of format_tb
  • Loading branch information
ajoubertza authored Mar 5, 2020
2 parents c4df00f + 1678ee6 commit 1b2ca4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ Tango::DevFailed to_dev_failed(PyObject *type, PyObject *value,

PyObject *tbList_ptr = PyObject_CallMethod(
tracebackModule,
(char *)"format_tb",
(char *)"O",
traceback == NULL ? Py_None : traceback);
(char *)"format_exception",
(char *)"OOO",
type, value, traceback);

boost::python::object tbList = object(handle<>(tbList_ptr));
boost::python::str origin = str("").join(tbList);
Expand Down

0 comments on commit 1b2ca4c

Please sign in to comment.