From 1f88227664aafcd6537805284b45bcb498fc43e7 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Mon, 17 Sep 2018 22:21:41 +0200 Subject: [PATCH] dss.py: automatically decode REDIS responses ... as UTF-8 Signed-off-by: Ralf Ramsauer --- dss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dss.py b/dss.py index 58e48e6..00d8b40 100755 --- a/dss.py +++ b/dss.py @@ -17,7 +17,7 @@ app.config.from_pyfile('config.cfg') app.jinja_env.trim_blocks = True app.jinja_env.lstrip_blocks = True -rdb = Redis(host=app.config.get('REDIS_HOST', '127.0.0.1'), password=app.config.get('REDIS_PASSWD')) +rdb = Redis(host=app.config.get('REDIS_HOST', '127.0.0.1'), password=app.config.get('REDIS_PASSWD'), decode_responses=True) ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_DEMAND) ldap.set_option(ldap.OPT_REFERRALS, 0)