From a1a6cd0d07167b6462b9d5cf465b8a0a0af60fda Mon Sep 17 00:00:00 2001 From: mdipierro Date: Thu, 25 Oct 2012 10:11:51 -0500 Subject: [PATCH] fixed issue 1109 --- VERSION | 2 +- gluon/globals.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e4025c24..f48fdbe8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.2.1 (2012-10-25 10:07:33) stable +Version 2.2.1 (2012-10-25 10:11:45) stable diff --git a/gluon/globals.py b/gluon/globals.py index 597eb650..7f588357 100644 --- a/gluon/globals.py +++ b/gluon/globals.py @@ -388,7 +388,10 @@ class Response(Storage): if not items: raise HTTP(404) (t, f) = (items.group('table'), items.group('field')) - field = db[t][f] + try: + field = db[t][f] + except AttributeError: + raise HTTP(404) try: (filename, stream) = field.retrieve(name) except IOError: