summaryrefslogtreecommitdiff
path: root/paste
diff options
context:
space:
mode:
authorianb <devnull@localhost>2005-10-03 21:28:30 +0000
committerianb <devnull@localhost>2005-10-03 21:28:30 +0000
commitee817806ddb51390d599b3a34e3b0c512aa6dedb (patch)
tree0f1715acd626befc66a36d6ff376be255e1b8434 /paste
parent3b8a6a04b4482c2078b740ba0aae8cf495166255 (diff)
downloadpastedeploy-ee817806ddb51390d599b3a34e3b0c512aa6dedb.tar.gz
Fix bug where an empty config, and no current config, were being confused
Diffstat (limited to 'paste')
-rw-r--r--paste/deploy/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/paste/deploy/config.py b/paste/deploy/config.py
index 2768b87..23b811d 100644
--- a/paste/deploy/config.py
+++ b/paste/deploy/config.py
@@ -95,7 +95,7 @@ class DispatchingConfig(object):
def __getattr__(self, attr):
conf = self.current_conf()
- if not conf:
+ if conf is None:
raise AttributeError(
"No configuration has been registered for this process "
"or thread")
@@ -113,7 +113,7 @@ class DispatchingConfig(object):
def __getitem__(self, key):
# I thought __getattr__ would catch this, but apparently not
conf = self.current_conf()
- if not conf:
+ if conf is None:
raise TypeError(
"No configuration has been registered for this process "
"or thread")