1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-11-14 21:47:18 +00:00

Deal with pylint being pylint

This commit is contained in:
Kristóf Tóth 2018-05-04 10:35:32 +02:00
parent 6782b49882
commit 0b8d084181
2 changed files with 7 additions and 7 deletions

View File

@ -7,5 +7,5 @@ class PasswordHasher:
return pbkdf2_sha256.hash(password)
@staticmethod
def verify(password, hash):
return pbkdf2_sha256.verify(password, hash)
def verify(password, hashdigest):
return pbkdf2_sha256.verify(password, hashdigest)

View File

@ -20,7 +20,7 @@ def get_db_session():
@app.teardown_appcontext
def close_db_session(error):
def close_db_session(err): # pylint: disable=unused-argument
if hasattr(g, 'db_session'):
g.db_session.close()
@ -80,7 +80,7 @@ def logout():
@app.errorhandler(401)
@app.errorhandler(404)
@app.route('/error')
def error(error):
def error(err): # pylint: disable=unused-argument
return render_template('error.html', error=error), error.code
@ -89,7 +89,7 @@ def error(error):
# for some bizarre reason
@app.errorhandler(500)
@app.route('/error')
def servererror(error):
def servererror(err): # pylint: disable=unused-argument
return render_template('error.html', error='500: Internal server error'), 500