From d9f46b23a620abdb50281a64697bdb4f4e5a553f Mon Sep 17 00:00:00 2001 From: pictuga Date: Wed, 30 Sep 2020 13:17:02 +0200 Subject: [PATCH] crawler: default value for MYSQL_HOST (localhost) --- morss/crawler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/crawler.py b/morss/crawler.py index 4ea4d6a..c9b5961 100644 --- a/morss/crawler.py +++ b/morss/crawler.py @@ -685,7 +685,7 @@ if 'CACHE' in os.environ: user = os.getenv('MYSQL_USER'), password = os.getenv('MYSQL_PWD'), database = os.getenv('MYSQL_DB'), - host = os.getenv('MYSQL_HOST') + host = os.getenv('MYSQL_HOST', 'localhost') ) elif os.environ['CACHE'] == 'sqlite':