Skip to content

Commit

Permalink
Update sipa/model/pycroft/user.py
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Juhrich <[email protected]>
  • Loading branch information
agmes4 and lukasjuhrich authored Dec 26, 2024
1 parent e819b1a commit a0490e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sipa/model/pycroft/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ def add_mpsks_client(self, name, mac, password):

def delete_mpsks_client(self, mpsk_id, password):
status, response = api.delete_mpsk(

Check warning on line 369 in sipa/model/pycroft/user.py

View check run for this annotation

Codecov / codecov/patch

sipa/model/pycroft/user.py#L369

Added line #L369 was not covered by tests
self.user_data.id,
password,
mpsk_id,
)
self.user_data.id,
password,
mpsk_id,
)
if status == 400 or status == 401:
raise ValueError(f'Mpsk client not found for user: {mpsk_id}')

Expand Down

0 comments on commit a0490e0

Please sign in to comment.