From dfb0129f093f0842a09932046f8909827773304c Mon Sep 17 00:00:00 2001 From: mdipierro Date: Sun, 12 Jun 2016 20:55:16 -0500 Subject: [PATCH] do not forget a missing session --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 4620a366..48165799 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -6234,7 +6234,7 @@ class Expose(object): and file creation under `base`. """ - current.session.forget() + current.session and current.session.forget() self.follow_symlink_out = follow_symlink_out self.base = self.normalize_path( base or os.path.join(current.request.folder, 'static'))