You aren't using the code I described. I never had hasattr() checks where you 
have added them.

Did you try the code as I wrote it rather than rewriting it?

I am out and about so can't paste original code and what you have on SO  to 
show why it is now broke, so look at my original code and get rid of the 
hasattr() checks around setting end_time at least.

Graham

On 15/02/2015, at 7:29 AM, Paul Royik <[email protected]> wrote:

> From time to time I got error, that 'local_thread' has no attribute counter.
> See this thread: 
> http://stackoverflow.com/questions/28518720/function-attributes-in-python
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to