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

@ -69,8 +69,7 @@ def register():
os.makedirs(user.path)
except OSError:
current_app.logger.error(
'Make dir {} led to an OSError!'.format(user.path)
)
f'Make dir {user.path} led to an OSError!')
db.session.delete(user)
db.session.commit()
abort(500)