aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-06-07 18:41:26 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-06-07 18:41:26 +0000
commit63897a2f5fd01c9bcf6c69a9a422be2070adeac9 (patch)
tree1dab63b4fab78599b4d153db4bcbdd200ddd7ec3
parenta44d169779bff65461b7834dd6188d1800ea7d75 (diff)
downloadmsec-63897a2f5fd01c9bcf6c69a9a422be2070adeac9.tar
msec-63897a2f5fd01c9bcf6c69a9a422be2070adeac9.tar.gz
msec-63897a2f5fd01c9bcf6c69a9a422be2070adeac9.tar.bz2
msec-63897a2f5fd01c9bcf6c69a9a422be2070adeac9.tar.xz
msec-63897a2f5fd01c9bcf6c69a9a422be2070adeac9.zip
Use 'None' level as base when no BASE_LEVEL is defined
-rw-r--r--src/msec/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msec/config.py b/src/msec/config.py
index 2fe0050..a136439 100644
--- a/src/msec/config.py
+++ b/src/msec/config.py
@@ -196,7 +196,7 @@ class MsecConfig:
def get_base_level(self, base_level=None):
"""Configures base level for current level, so the settings could be pulled from it"""
if not base_level:
- base_level = self.get('BASE_LEVEL')
+ base_level = self.get('BASE_LEVEL', NONE_LEVEL)
self.base_level = base_level
return self.base_level