From baea7dcc80b5698979b124d3ee24f6f90ff2d4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxi=20Quo=C3=9F?= Date: Thu, 30 Sep 2021 00:25:32 +0200 Subject: [PATCH] fix no device name = unknown --- app/wol/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/wol/views.py b/app/wol/views.py index 903898fd..91251189 100644 --- a/app/wol/views.py +++ b/app/wol/views.py @@ -88,7 +88,7 @@ def scan(request): ip = ip.replace("(", "") ip = ip.replace(")", "") else: - name = None + name = "Unknown" ip = line_splitted[4] elif line.startswith(mac_line): line_splitted = line.split()