From 46dc0900fee1ce0509f5133d0db964781d75f8fd Mon Sep 17 00:00:00 2001 From: Vignesh Rao Date: Sat, 17 Aug 2024 18:06:23 -0500 Subject: [PATCH] Avoid suffix being `None` value --- netfuse/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netfuse/main.py b/netfuse/main.py index 38be469..7a18ac3 100644 --- a/netfuse/main.py +++ b/netfuse/main.py @@ -94,7 +94,7 @@ def dump( host_entries += "\n" + "*" * 83 + "\n\n" for device in module.attached_devices(): if device.ipv4_address: - host_entries += f"{device.ipv4_address}\t{device.name}{suffix}\n" + host_entries += f"{device.ipv4_address}\t{device.name}{suffix or ''}\n" else: LOGGER.debug( "%s [%s] does not have an IP address", device.name, device.mac_address