bug fix: hanle case if session has not yet been created
This commit is contained in:
parent
1d33e55915
commit
1aa90f68a2
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ class SessionDataContainer(object):
|
|||
def __getitem__(self, key):
|
||||
client = component.getUtility(IMemcachedClient)
|
||||
value = client.query(key, ns=self.namespace)
|
||||
if value:
|
||||
value.parent = self
|
||||
return value
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue