Diez B. Roggisch wrote: > Thomas Guettler wrote: > >> Hi, >> >> how can you list the attributes of an object if you catch an >> AttributeError? >> >> I couldn't find a reference in the exception object, which >> points to the object. >> >> I want to call dir() on the object to list the user the known >> attributes. >> >> Is there a way to find the object by inspecting the stacktrace? > > By looking at the code at the line the stacktrace lists? And at least for > me, there is a type-information as well:
Hello, I want to customize the debug tracebacks displayed in django. It is not to find one particular error. That's why changing the source is not a solution. Thomas -- Thomas Güttler, http://www.thomas-guettler.de/ http://www.tbz-pariv.de/ E-Mail: guettli (*) thomas-guettler + de Spam Catcher: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list