Update README and LGTM fixes

This commit is contained in:
Khanh Ngo
2019-12-08 18:23:36 +07:00
parent 354383f0ec
commit c1fae6f3dd
5 changed files with 8 additions and 13 deletions

View File

@ -131,7 +131,7 @@ def api_basic_auth(f):
abort(401)
else:
user = User.query.filter(User.username == username).first()
current_user = user
current_user = user # lgtm [py/unused-local-variable]
except Exception as e:
current_app.logger.error('Error: {0}'.format(e))
abort(401)