From 8de9a621b0888c41695c280ae4cacb45a76bb32e Mon Sep 17 00:00:00 2001 From: Stephen Payne Date: Wed, 14 Aug 2024 18:57:16 -0400 Subject: [PATCH] Formatting tweak --- python/extension/extension.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/extension/extension.cpp b/python/extension/extension.cpp index 75cf30f..e119422 100644 --- a/python/extension/extension.cpp +++ b/python/extension/extension.cpp @@ -352,9 +352,10 @@ void PJRmiPipe::write(int b) void PJRmiPipe::check_exception(const char* when) noexcept(false) { - if (_env->ExceptionCheck() == JNI_TRUE ) { + 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) {