Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

        def log_error(view_func):
    def wrapper(request, *args, **kwargs):
        try:
            return view_func(request, *args, **kwargs)
        except:
            logger.exception("exception")
            raise
    return wrapper
        


src/a/p/apidev-sanza-3.0.4/sanza/Emailing/views.py   apidev-sanza(Download)
from sanza.permissions import can_access
from utils import send_verification_email
from sanza.utils import logger, log_error
from sanza.utils import now_rounded
import os.path

src/a/p/apidev-sanza-3.0.4/sanza/Search/views.py   apidev-sanza(Download)
from django.db.models import Q
from sanza.permissions import can_access
from sanza.utils import logger, log_error
from wkhtmltopdf.views import PDFTemplateView
from sanza.Crm import settings as crm_settings

src/a/p/apidev-sanza-3.0.4/sanza/Crm/views.py   apidev-sanza(Download)
from sanza.Crm.utils import unicode_csv_reader, resolve_city, check_city_exists, get_in_charge_users
from sanza.permissions import can_access
from sanza.utils import logger, log_error
from coop_cms.generic_views import EditableObjectView
from django.contrib.messages import api as user_message