Skip to content

Commit

Permalink
Update pycroft/model/mpsk_client.py
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Juhrich <lukasjuhrich@users.noreply.github.com>
  • Loading branch information
agmes4 and lukasjuhrich committed Sep 18, 2024
1 parent 8ba571b commit 6764ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycroft/model/mpsk_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6764ae5

Please sign in to comment.