Closed impiyush83 closed 1 year ago
Thanks for the fix @impiyush83. Because the error messages are repeated, can you move them all into one utility function and call that in every place where you see this exception? I suggest something like following
error_handler.py
def handle_error(ex):
if ex is grpc.RpcError
if ex.code() == grpc.StatusCode.UNAVAILABLE:
print(f' MFT server is unavailable. ')
@DImuthuUpe Updated PR with a utility function.
Looks good to me. Thanks @impiyush83
@DImuthuUpe created a clean PR
94