From b9a638dfdb1104e5fad71f0c577742d90edb4ebe Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 18 Jan 2025 13:42:52 +0100 Subject: [PATCH] refactoring for ruff --- sipa/model/pycroft/user.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sipa/model/pycroft/user.py b/sipa/model/pycroft/user.py index d70587e3..13fe1e1d 100644 --- a/sipa/model/pycroft/user.py +++ b/sipa/model/pycroft/user.py @@ -1,6 +1,5 @@ from __future__ import annotations -import json import logging from datetime import date @@ -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: