From 6764ae54107dafb770d8262e3ccc04a5d9e9e7ae Mon Sep 17 00:00:00 2001 From: Alex <61407455+agmes4@users.noreply.github.com> Date: Wed, 18 Sep 2024 17:20:44 +0200 Subject: [PATCH] Update pycroft/model/mpsk_client.py Co-authored-by: Lukas Juhrich --- pycroft/model/mpsk_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycroft/model/mpsk_client.py b/pycroft/model/mpsk_client.py index ad028ec75..4e41ea6a7 100644 --- a/pycroft/model/mpsk_client.py +++ b/pycroft/model/mpsk_client.py @@ -38,7 +38,7 @@ def validate_mac(self, _, mac_address): @validates("name") def validate_name(self, _, name): - if len(name.replace(" ", "")) == 0: + if name.strip(): raise InvalidName("Name cannot be empty") return name