Property fix

This commit is contained in:
Ruud
2012-04-18 22:19:38 +02:00
parent 981840573e
commit 187cd09f04
3 changed files with 5 additions and 5 deletions
+1 -2
View File
@@ -199,9 +199,8 @@ class Settings(object):
db = get_session()
try:
prop = db.query(Properties).filter_by(identifier = identifier).first()
return prop.value
return prop.value if prop else None
except:
print traceback.format_exc()
return None
def setProperty(self, identifier, value = ''):