def METHOD_NAME(*args, **kwargs):
    try:
        return func(*args, **kwargs)
    except Exception:
        stacktrace = inspect.trace()[1:]
        _logger = logging.getLogger(__name__)
        _logger.exception("An unhandled exception occurred")
        log_last_django_query(_logger)
        log_stacktrace(logging.getLogger('nav.topology.stacktrace'), stacktrace)
        raise