durusmail: quixote-users: Strange NoneType errors
Strange NoneType errors
2004-07-02
2004-07-02
2004-07-02
Strange NoneType errors
Evan LaForge
2004-07-02
> When these subsidiary modules are imported I see this error message;
>
> """
> TypeError: 'NoneType' object is not callable
> """
>
> The statement which triggers this is the __init__ method of my Database
> class in my database.py module. This does not cause any problems on my

You mean "the statement which triggers this is *in* the __init__ method..."
right?  Because I don't see how executing the 'def' statement for __init__
could throw that error, even if you forgot the 'def'.  If it is, then what
is the text of the 'def' statement?

Otherwise, what is the line?  Do you know what the object in question is?  The
usual procedure is to find the object and see where it's getting its value.
Traces can be handy.  If it only shows up over cgi, then just put in some
prints to figure out what things are and debug it over cgi.

> _q_index [html] (request):
>      '
My test page
\n' > '

A little light text

' > """ > > When I access this page I trigger the same error as my other pages. I'd think the above would give you a different error .
reply