From 0270fc2dcabe2bf73c4af83dc7473f9c200adfcd Mon Sep 17 00:00:00 2001 From: Michal Petko <2665179+miso231@users.noreply.github.com> Date: Mon, 1 Jul 2019 17:29:58 +0200 Subject: [PATCH] Retype REDIS_PORT to int --- configuration/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index 9284239..fc39118 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -48,7 +48,7 @@ SECRET_KEY = os.environ.get('SECRET_KEY', read_secret('secret_key')) # Redis database settings. The Redis database is used for caching and background processing such as webhooks REDIS = { 'HOST': os.environ.get('REDIS_HOST', 'localhost'), - 'PORT': os.environ.get('REDIS_PORT', 6379), + 'PORT': int(os.environ.get('REDIS_PORT', 6379)), 'PASSWORD': os.environ.get('REDIS_PASSWORD', read_secret('redis_password')), 'DATABASE': os.environ.get('REDIS_DATABASE', '0'), 'CACHE_DATABASE': os.environ.get('REDIS_CACHE_DATABASE', '1'),