From c51eabe809af070fc77a682a75f4625f4567319c Mon Sep 17 00:00:00 2001 From: fis Date: Thu, 20 Jan 2022 16:24:29 +0800 Subject: [PATCH] linter. --- python-package/xgboost/dask.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-package/xgboost/dask.py b/python-package/xgboost/dask.py index 0bca8d97df56..e4f302a0f1db 100644 --- a/python-package/xgboost/dask.py +++ b/python-package/xgboost/dask.py @@ -165,8 +165,9 @@ def _start_tracker( if e.errno != 99: # not a bind error raise LOGGER.warning( - f"Failed to bind address: {get_host_ip(addr_from_user)}, try" - f" {addr_from_dask} instead." + "Failed to bind address: %s, try %s instead.", + str(get_host_ip(addr_from_user)), + str(addr_from_dask), ) rabit_context = RabitTracker( hostIP=addr_from_dask, n_workers=n_workers, use_logger=False