Fix import errors

This commit is contained in:
Cássio Botaro
2015-05-02 20:36:35 -03:00
parent 9357d810d8
commit 258e2e57ae
+1
View File
@@ -298,6 +298,7 @@ class List(list):
if not value and otherwise: if not value and otherwise:
raise ValueError('Otherwise will raised.') raise ValueError('Otherwise will raised.')
except (ValueError, TypeError): except (ValueError, TypeError):
from http import HTTP, redirect
if otherwise is None: if otherwise is None:
raise HTTP(404) raise HTTP(404)
elif isinstance(otherwise, str): elif isinstance(otherwise, str):