From 9be2d8dbd9af4966d6449b44f2c805330ec253f7 Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Tue, 15 Oct 2024 11:10:39 +0100 Subject: [PATCH] Tweak exception text --- distributed/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distributed/client.py b/distributed/client.py index 93ba897a09..58781109da 100644 --- a/distributed/client.py +++ b/distributed/client.py @@ -5106,8 +5106,8 @@ def _register_plugin( for c in plugin.__class__.__bases__ ): raise TypeError( - "Importing plugin base classes from `from dask.distributed.diagnostics.plugin` " - "is not supported. Please import directly from `distributed.diagnostics.plugin` instead." + "Importing plugin base classes from `dask.distributed.diagnostics.plugin` is not supported. " + "Please import directly from `distributed.diagnostics.plugin` instead." ) raise TypeError( "Registering duck-typed plugins is not allowed. Please inherit from "