From 9f1edf267d9e732f4a31ce79747a64aa99da9393 Mon Sep 17 00:00:00 2001 From: niphlod Date: Tue, 21 Apr 2015 21:59:42 +0200 Subject: [PATCH] fixes #931 . Thanks @butsyk for spotting the bug --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 6860a4bf..790c172e 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -5362,7 +5362,7 @@ class Expose(object): if current.request.raw_args: self.args = [arg for arg in current.request.raw_args.split('/') if arg] else: - self.args = [arg for arg in current.request.args if args] + self.args = [arg for arg in current.request.args if arg] filename = os.path.join(base, *self.args) if not os.path.exists(filename): raise HTTP(404, "FILE NOT FOUND")