You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there is a bug in send_commandfunction in 'java_gateway.py'. When an exception is raised the current version of code doesn't reveal the cause of exception
except Py4JNetworkError as pne:
if connection:
reset = False
if isinstance(pne.cause, socket.timeout):
reset = True
connection.close(reset)
if self._should_retry(retry, connection, pne):
logging.info("Exception while sending command.", exc_info=True)
response = self.send_command(command, binary=binary)
else:
logging.exception(
"Exception while sending command.")
response = proto.ERROR
In my use case, I need to access to reason of exception in the answer in __call__function in java_gateway.py.
The text was updated successfully, but these errors were encountered:
It seems there is a bug in
send_command
function in 'java_gateway.py'. When an exception is raised the current version of code doesn't reveal the cause of exceptionIn my use case, I need to access to reason of exception in the answer in
__call__
function injava_gateway.py
.The text was updated successfully, but these errors were encountered: