From c367a5f426665e5ade1a77fed6630317e1c58dea Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Wed, 22 Mar 2023 10:29:35 +0000 Subject: T5105: Fix error message from dhcp-server (cherry picked from commit 05e00b986a563681b038b226c86c83a29d6da820) --- src/conf_mode/dhcp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/conf_mode/dhcp_server.py b/src/conf_mode/dhcp_server.py index 11ee6b60a..ff0f5ecc5 100755 --- a/src/conf_mode/dhcp_server.py +++ b/src/conf_mode/dhcp_server.py @@ -247,7 +247,7 @@ def verify(dhcp): net2 = ip_network(n) if (net != net2): if net.overlaps(net2): - raise ConfigError('Conflicting subnet ranges: "{net}" overlaps "{net2}"!') + raise ConfigError(f'Conflicting subnet ranges: "{net}" overlaps "{net2}"!') # Prevent 'disable' for shared-network if only one network is configured if (shared_networks - disabled_shared_networks) < 1: -- cgit v1.2.3