the-sakthi commented on code in PR #50091: URL: https://github.com/apache/spark/pull/50091#discussion_r1972363827
########## python/pyspark/sql/connect/client/reattach.py: ########## @@ -261,14 +261,19 @@ def _call_iter(self, iter_fun: Callable) -> Any: return iter_fun() except grpc.RpcError as e: status = rpc_status.from_call(cast(grpc.Call, e)) - if status is not None and ( - "INVALID_HANDLE.OPERATION_NOT_FOUND" in status.message - or "INVALID_HANDLE.SESSION_NOT_FOUND" in status.message - ): + unexpected_error = [ Review Comment: do we definitely need to create this list `unexpected_error` when only one match is needed? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org