Skip to content

Commit

Permalink
Fix exception handling in PJRmiPipe::check_exception() function (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarwal-aditya authored Aug 14, 2024
1 parent f24d234 commit 68d0d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/extension/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ void PJRmiPipe::check_exception(const char* when)
{
if (_env->ExceptionCheck() == JNI_TRUE ) {
jthrowable exceptionObj = _env->ExceptionOccurred();

_env->ExceptionClear();
std::string errstr("[Unknown error]");
jclass Throwable = _env->FindClass("java/lang/Throwable");
if (Throwable != NULL) {
Expand Down

0 comments on commit 68d0d0d

Please sign in to comment.