From d13356506176c1eccc2cc19a03b520b12d066456 Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Tue, 4 Jun 2019 14:53:06 -0700 Subject: [PATCH] continue support for _singular_ dedup-bucket --- warcprox/warcproxy.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/warcprox/warcproxy.py b/warcprox/warcproxy.py index 625138b..9d23244 100644 --- a/warcprox/warcproxy.py +++ b/warcprox/warcproxy.py @@ -380,6 +380,11 @@ class RecordedUrl: warcprox_meta['dedup-buckets'] = {} warcprox_meta['dedup-buckets'][warcprox_meta['captures-bucket']] = 'rw' del warcprox_meta['captures-bucket'] + if 'dedup-bucket' in warcprox_meta: + # more backwards compatibility + warcprox_meta['dedup-buckets'] = {} + warcprox_meta['dedup-buckets'][warcprox_meta['dedup-bucket']] = 'rw' + del warcprox_meta['dedup-bucket'] self.warcprox_meta = warcprox_meta else: self.warcprox_meta = {}