Fix: Remove strict "is True" check

`is True` checks that the value points to the same memory. To check for truthiness, use `== True` or simply `if condition`
This commit is contained in:
trwnh 2022-11-30 11:00:30 -06:00 committed by GitHub
parent 5838f15b1c
commit fe57550de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def create_app(test_config=None):
app.config.from_pyfile('redeems.py', silent=True)
# Make logging work for gunicorn-ran instances of tlapbot.
if app.config['GUNICORN'] is True:
if app.config['GUNICORN']:
gunicorn_logger = logging.getLogger('gunicorn.error')
app.logger.handlers = gunicorn_logger.handlers
app.logger.setLevel(gunicorn_logger.level)