Strange error with getattr() function

Hole h0leforfun at gmail.com
Tue Dec 19 08:01:38 EST 2006


Gabriel Genellina ha scritto:

> At Monday 18/12/2006 13:25, Hole wrote:
>
> > > At this point, I got the error: attribute name must be string
> >
> >I'm wondering if the exception is raised in a hidden function and not
> >in the explicit call to getattr(). How can I view the traceback in a
> >script running in zope??
>
> (Which Zope version?)
> If you don't catch the exception, an error page will be displayed,
> pointing to the error_log object.
>
>

Hi Gabriel,

thanks a lot for your replies.

I've resolved the problem catching the exception and printing the
traceback in a file.

The problem was, indeed, in a getattr() call performed in another
function, to which I passed an int rather than a string.

Bye!

-- 
DN




More information about the Python-list mailing list