capture exception occured in inbox worker with sentry.
make be compatible with old version of inbox.py