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: