dcramer/raven — Issue #53: Exceptions raised in Celery task: AttributeError: '_Frame' object has no attribute 'f_lineno'
Author: inactivist
Created: 2012-02-01 20:07:30+00:00
State: open

Not sure what's causing this, but trying to log an exception that's raised in a Celery task results in this log message sequence:

```WARNING 2012-02-01 11:56:24,105 log 24218 -1248035984 Top level Sentry exception caught - failed creating log record
WARNING 2012-02-01 11:56:24,106 log 24218 -1248035984 Task %(name)s[%(id)s] raised exception: %(exc)s
%(traceback)s
WARNING 2012-02-01 11:56:24,107 log 24218 -1248035984 Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/handlers/logging.py", line 58, in emit
return self._emit(record)
File "/usr/local/lib/python2.7/dist-packages/raven/contrib/django/handlers.py", line 32, in _emit
return super(SentryHandler, self)._emit(record, request=request)
File "/usr/local/lib/python2.7/dist-packages/raven/handlers/logging.py", line 106, in _emit
data.update(handler.capture(exc_info=record.exc_info))
File "/usr/local/lib/python2.7/dist-packages/raven/events.py", line 66, in capture
frames = varmap(lambda k, v: shorten(v), get_stack_info(iter_traceback_frames(exc_traceback)))
File "/usr/local/lib/python2.7/dist-packages/raven/utils/stacks.py", line 170, in get_stack_info
lineno = frame.f_lineno - 1
AttributeError: '_Frame' object has no attribute 'f_lineno'
```