django-traceback

Traceback model and utils


Keywords
django, traceback, python
License
Unlicense
Install
pip install django-traceback==2020.12.3

Documentation

Installation

$ [sudo] pip install django-traceback

Examples

from django_traceback.utils import save_traceback
import requests
from apps.celery import celery_app

@celery_app.task
def task():
    try:
        r = requests.get('url')
    except (requests.exceptions.ConnectionError,...):
        save_traceback(__file__)
        # init task again

readme42.com