File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,8 @@ def _validate_updatable_fields(self, proposal):
227
227
field for field in proposal ["value" ] if field not in valid_updatable_fields
228
228
]
229
229
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 )
231
232
return proposal ["value" ]
232
233
233
234
need_token : bool | Bool [bool , t .Union [bool , int ]] = Bool (True )
@@ -300,7 +301,8 @@ def update_user(
300
301
301
302
for field in user_data :
302
303
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 )
304
306
305
307
# Update fields
306
308
for field in self .updatable_fields :
You can’t perform that action at this time.
0 commit comments