Little fix in sessions
This commit is contained in:
parent
e853124bf2
commit
52d5e3e133
1 changed files with 27 additions and 22 deletions
|
|
@ -110,6 +110,8 @@ def get_session():
|
|||
|
||||
s={}
|
||||
|
||||
try:
|
||||
|
||||
if request.environ:
|
||||
|
||||
if not 'session' in request.environ:
|
||||
|
|
@ -135,6 +137,9 @@ def get_session():
|
|||
else:
|
||||
|
||||
s=request.environ['session']
|
||||
except RuntimeError:
|
||||
|
||||
pass
|
||||
|
||||
return ParamecioSession(s)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue