From 4d0b06d851647f0c14f31dba3d2e27e498b9f169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 5 Mar 2011 21:56:27 +0100 Subject: [PATCH] Set default value for _CONFIG.current --- proteus/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proteus/config.py b/proteus/config.py index 710b01b296..57b887aa3b 100644 --- a/proteus/config.py +++ b/proteus/config.py @@ -23,6 +23,7 @@ xmlrpclib.Marshaller.dispatch[datetime.date] = \ datetime.datetime.combine(value, datetime.time()), write) _CONFIG = threading.local() +_CONFIG.current = None class Config(object): @@ -212,5 +213,4 @@ def set_xmlrpc(url): return _CONFIG.current def get_config(): - # TODO raise exception if not set return _CONFIG.current