Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
Prepare exception for serialization.

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/djcelery/tests/test_views.py   socorro(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/m/a/make.mozilla.org-HEAD/vendor-local/lib/python/djcelery/tests/test_views.py   make.mozilla.org(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/o/h/oh-mainline-HEAD/vendor/packages/django-celery/djcelery/tests/test_views.py   oh-mainline(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/m/o/mozillians-HEAD/vendor-local/lib/python/djcelery/tests/test_views.py   mozillians(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/p/l/playdoh-lib-HEAD/lib/python/djcelery/tests/test_views.py   playdoh-lib(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/k/u/kuma-lib-HEAD/packages/django-celery/djcelery/tests/test_views.py   kuma-lib(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/f/i/firefox-flicks-HEAD/vendor-local/lib/python/djcelery/tests/test_views.py   firefox-flicks(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/d/j/django-celery-HEAD/djcelery/tests/test_views.py   django-celery(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__ as exc:
        exc = current_app.backend.prepare_exception(exc)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/djcelery/tests/test_views.py   antisocial(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__, exc:
        exc = current_app.backend.prepare_exception(exc)

src/d/j/django-celery-3.1.10/djcelery/tests/test_views.py   django-celery(Download)
def catch_exception(exception):
    try:
        raise exception
    except exception.__class__ as exc:
        exc = current_app.backend.prepare_exception(exc)