Skip to content

Commit f161b92

Browse files
committed
added comments
1 parent 6199a57 commit f161b92

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

trex/python/exception_helper.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ void exception_table::unwrap_py_error() {
8585
// This type is known and has an instance -> convert it
8686
(*pos)->convert(val);
8787
} else {
88+
// Not a type I can convert -> decode it and thow the content as python_error
8889
bp::object formatted_list, formatted;
8990
std::string type, msg;
9091

@@ -109,7 +110,8 @@ void exception_table::unwrap_py_error() {
109110
throw python_error(type);
110111
}
111112
} else {
112-
// send a python error with <null> type; but this should never occur
113+
// exc was null even though Python says that and error occurred !??
114+
// send a python error with <null> type; but this should never occur
113115
throw python_error("<null>");
114116
}
115117
}

0 commit comments

Comments
 (0)