From fe57550de2b6ca53a30a86a2a7ad216389df7599 Mon Sep 17 00:00:00 2001 From: trwnh Date: Wed, 30 Nov 2022 11:00:30 -0600 Subject: [PATCH] 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` --- tlapbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlapbot/__init__.py b/tlapbot/__init__.py index 5621a3b..9aed54d 100644 --- a/tlapbot/__init__.py +++ b/tlapbot/__init__.py @@ -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)