Skip to content

Commit c2d83db

Browse files
committed
Fix lint
1 parent 407f3c0 commit c2d83db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter_server/auth/identity.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ def _validate_updatable_fields(self, proposal):
227227
field for field in proposal["value"] if field not in valid_updatable_fields
228228
]
229229
if invalid_fields:
230-
raise TraitError(f"Invalid fields in updatable_fields: {invalid_fields}")
230+
msg = f"Invalid fields in updatable_fields: {invalid_fields}"
231+
raise TraitError(msg)
231232
return proposal["value"]
232233

233234
need_token: bool | Bool[bool, t.Union[bool, int]] = Bool(True)
@@ -300,7 +301,8 @@ def update_user(
300301

301302
for field in user_data:
302303
if field not in self.updatable_fields:
303-
raise ValueError(f"Field {field} is not updatable")
304+
msg = f"Field {field} is not updatable"
305+
raise ValueError(msg)
304306

305307
# Update fields
306308
for field in self.updatable_fields:

0 commit comments

Comments
 (0)