full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
Update crud_user.py
Due to the fact that update() will receive its data through UserUpdate, its data may or may not consist "password". I added .get("password") to prevent any KeyError exception.
password is optional in UserUpdate. It should be considered to use .get() instead of directly accessing in within crud.update()
Nice solution, but unfortunately it's duplicated: #346
Thanks! This was handled in another PR, so I'll close this one. But thanks for the effort! :coffee: