From 3e2696525b8600c869cd31243943e8a093092198 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Mon, 2 Nov 2015 22:12:06 +0000 Subject: [PATCH] make sure svcreg is set --- warcprox/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/warcprox/main.py b/warcprox/main.py index 2d6c2e2..574c144 100644 --- a/warcprox/main.py +++ b/warcprox/main.py @@ -168,6 +168,8 @@ def init_controller(args): if args.rethinkdb_servers: svcreg = rethinkstuff.ServiceRegistry(r) + else: + svcreg = None controller = warcprox.controller.WarcproxController(proxy, warc_writer_thread, playback_proxy, service_registry=svcreg,