django-twango
django-twango copied to clipboard
object.__new__(ellipsis) is not safe, use ellipsis.__new__()
If I enable Twango MiddleWare, then invoke a view that contains request.user.get_profile(), I get this hairy traceback:
http://dpaste.com/166692/
If comment out either the Twango middleware OR the view line calling get_profile(), the crash goes away, so it seems to be some interaction between them.
More info: This is interesting. I commented out the code below and replaced it with the following lines, and the crash went away.
# Is this from the current user's list?
# if request.user.is_authenticated():
# mylist = get_object_or_404(List,profile=request.user.get_profile())
# # mylist = None
# else:
# mylist = None
try:
mylist = get_object_or_404(List,profile=request.user.get_profile())
except:
mylist = None