From e1e341b5222df0c09bc5fc5c6cb707fbc19194b1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 19 Nov 2009 23:43:36 +0000 Subject: Try it. --- repoze/bfg/zcml.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repoze/bfg/zcml.py b/repoze/bfg/zcml.py index 3c312a66e..1767880bd 100644 --- a/repoze/bfg/zcml.py +++ b/repoze/bfg/zcml.py @@ -524,7 +524,10 @@ def get_configurator(reg): # when some configuration methods (such as config.view) are # called. from repoze.bfg.configuration import Configurator - config = reg.get('bfg_configurator') + try: + config = reg.get('bfg_configurator') + except: + config = None if config is None: config = Configurator(reg) return config -- cgit v1.2.3