Codestyle enhancements

This commit is contained in:
Patrick Jentsch
2021-12-08 14:45:05 +01:00
parent 1fd7a2e38c
commit 3d99b8770c
10 changed files with 44 additions and 41 deletions

View File

@ -8,6 +8,6 @@ def delete_user(user_id, *args, **kwargs):
with kwargs['app'].app_context():
user = User.query.get(user_id)
if user is None:
raise Exception('User {} not found'.format(user_id))
raise Exception(f'User {user_id} not found')
user.delete()
db.session.commit()