Skip to content

Commit

Permalink
refactoring for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
agmes4 committed Jan 18, 2025
1 parent a283977 commit b9a638d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sipa/model/pycroft/user.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from __future__ import annotations

import json
import logging
from datetime import date

Expand Down Expand Up @@ -363,10 +362,6 @@ def add_mpsk_client(self, name, mac, password):
elif status == 412:
raise NoWiFiPasswordGenerated


if type(response) is not dict:
raise ValueError(f"Invalid response from {response}")

if 'name' in response.keys() and 'mac' in response.keys() and 'id' in response.keys():
return MPSKClientEntry(name=response.get('name'), mac=response.get('mac'), id=response.get('id'))
else:
Expand Down

0 comments on commit b9a638d

Please sign in to comment.