Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
Handle an exception. Currently we log the exception through  our own
logger. 'obj' is currently unused. We might use it later to obtain
detailed informations.

        def handle_exc(text, obj, exc_info):
    """ Handle an exception. Currently we log the exception through  our own
        logger. 'obj' is currently unused. We might use it later to obtain
        detailed informations.
    """
    
    # Add some addition object info iff available.
    # XXX: this should be replaced with a more elegant solution
    
    try:
        text = text + ' (%s)' % obj.absolute_url(1)
    except:
        pass

    LOG.error(text, exc_info=exc_info)
        


src/z/o/zopyx.txng3.core-3.6.1.1/zopyx/txng3/core/index.py   zopyx.txng3.core(Download)
from config import defaults
from resultset import unionResultSets
from util import handle_exc
from searchrequest import SearchRequest
from stemmer import getStemmer
                                                default_language=self.languages[0])
        except:
            handle_exc('extract_content failed', obj, sys.exc_info())
            return False