aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2017-01-27 22:39:38 +0100
committerMichael Buesch <m@bues.ch>2017-01-27 22:39:38 +0100
commit72bfafb9ae98c825cfc4256f6156f594ce646f5a (patch)
tree16993c7834d79661aece5efcd81a280bd2fe385b
parent2345a9688a311fc24d0d3522683d5c827bbf217e (diff)
downloadcms-72bfafb9ae98c825cfc4256f6156f594ce646f5a.zip
cms-72bfafb9ae98c825cfc4256f6156f594ce646f5a.tar.xz
Do not use string as default string name
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--cms/cms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cms/cms.py b/cms/cms.py
index c2fccf2..926829e 100644
--- a/cms/cms.py
+++ b/cms/cms.py
@@ -400,7 +400,7 @@ class CMSDatabase(object):
string = f_read(self.stringBase, name).strip()
if string:
return string
- return name if default is None else default
+ return default or ""
def getPostHandler(self, pageIdent):
path = mkpath(self.pageBase, pageIdent.getFilesystemPath())
bues.ch cgit interface