Merge pull request #310 from gdyuldin/fix_print_exc_call

Fix traceback.print_exc call
This commit is contained in:
Alexander Taylor 2017-11-25 14:54:15 +00:00 committed by GitHub
commit 19ae9b0721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -46,8 +46,8 @@ cdef class PythonJavaClass(object):
try:
ret = self._invoke(method, *args)
return ret
except Exception as e:
traceback.print_exc(e)
except Exception:
traceback.print_exc()
return None
def _invoke(self, method, *args):
@ -141,16 +141,16 @@ cdef jobject py_invoke0(JNIEnv *j_env, jobject j_this, jobject j_proxy, jobject
try:
return convert_python_to_jobject(j_env, jtype or ret_signature, ret)
except Exception as e:
traceback.print_exc(e)
except Exception:
traceback.print_exc()
cdef jobject invoke0(JNIEnv *j_env, jobject j_this, jobject j_proxy, jobject
j_method, jobjectArray args) with gil:
try:
return py_invoke0(j_env, j_this, j_proxy, j_method, args)
except Exception as e:
traceback.print_exc(e)
except Exception:
traceback.print_exc()
return NULL
# now we need to create a proxy and pass it an invocation handler