From 258e2e57aeb20a7271a238a28933233e0e9086c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Botaro?= Date: Sat, 2 May 2015 20:36:35 -0300 Subject: [PATCH] Fix import errors --- gluon/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gluon/storage.py b/gluon/storage.py index cb0dae30..3b0780fd 100644 --- a/gluon/storage.py +++ b/gluon/storage.py @@ -298,6 +298,7 @@ class List(list): if not value and otherwise: raise ValueError('Otherwise will raised.') except (ValueError, TypeError): + from http import HTTP, redirect if otherwise is None: raise HTTP(404) elif isinstance(otherwise, str):