From 3ce9d64379331c4d7907e26f3301f913cc299bc7 Mon Sep 17 00:00:00 2001 From: Lukas Straub Date: Sat, 13 Feb 2021 18:52:31 +0000 Subject: [PATCH] Fix dedup_index_url configuration option The 'dedup_index_url' configuration option should be inside the 'recorder' section. --- pywb/warcserver/warcserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pywb/warcserver/warcserver.py b/pywb/warcserver/warcserver.py index c162437ad..bf7b431db 100644 --- a/pywb/warcserver/warcserver.py +++ b/pywb/warcserver/warcserver.py @@ -78,7 +78,7 @@ def __init__(self, config_file='./config.yaml', custom_config=None): recorder_config = self.config.get('recorder') or {} if isinstance(recorder_config, dict) and recorder_config.get('dedup_policy'): - self.dedup_index_url = self.config.get('dedup_index_url', WarcServer.DEFAULT_DEDUP_URL) + self.dedup_index_url = recorder_config.get('dedup_index_url', WarcServer.DEFAULT_DEDUP_URL) if self.dedup_index_url and not self.dedup_index_url.startswith('redis://'): raise Exception("The dedup_index_url must start with \"redis://\". Only Redis-based dedup index is supported at this time.") else: