From a4ef4c7857d4cbcd7c9d73109d5efae06db8a6d4 Mon Sep 17 00:00:00 2001 From: Denny Weinberg Date: Wed, 30 Mar 2022 22:28:00 +0200 Subject: [PATCH] #395 --- rq_dashboard/web.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rq_dashboard/web.py b/rq_dashboard/web.py index ca83e8d..1d0383f 100644 --- a/rq_dashboard/web.py +++ b/rq_dashboard/web.py @@ -66,9 +66,9 @@ def setup_rq_connection(): redis_url = current_app.config.get("RQ_DASHBOARD_REDIS_URL") if isinstance(redis_url, string_types): current_app.config["RQ_DASHBOARD_REDIS_URL"] = (redis_url,) - _, current_app.redis_conn = from_url((redis_url,)[0], client_option={'ssl_cert_reqs': None}) + _, current_app.redis_conn = from_url((redis_url,)[0], client_options={'ssl_cert_reqs': None}) elif isinstance(redis_url, (tuple, list)): - _, current_app.redis_conn = from_url(redis_url[0], client_option={'ssl_cert_reqs': None}) + _, current_app.redis_conn = from_url(redis_url[0], client_options={'ssl_cert_reqs': None}) else: raise RuntimeError("No Redis configuration!") @@ -79,7 +79,7 @@ def push_rq_connection(): if new_instance_number is not None: redis_url = current_app.config.get("RQ_DASHBOARD_REDIS_URL") if new_instance_number < len(redis_url): - _, new_instance = from_url(redis_url[new_instance_number], client_option={'ssl_cert_reqs': None}) + _, new_instance = from_url(redis_url[new_instance_number], client_options={'ssl_cert_reqs': None}) else: raise LookupError("Index exceeds RQ list. Not Permitted.") else: