lama/common.py
def excepthook_overide(exctype, value, traceback):
    """
    Used to override sys.excepthook so we can log any ancaught Exceptions

    Parameters
    ----------
    exctype
    value
    traceback

    Returns
    -------

    """

    logging.exception(''.join(format_exception(exctype, value, traceback)))
    logging.warn(('#'*30))

    if isinstance(exctype, type(LamaDataException)):
        logging.warn('Lama encountered a problem with reading or interpreting some data. Please check the log files')
    else:
        logging.warn('Lama encountered an unknown problem. Please check the log files')
    sys.exit()

    Used to override sys.excepthook so we can log any ancaught Exceptions

    Parameters
    ----------
    exctype
    value
    traceback

    Returns
    -------

    
Used to override sys.excepthook so we can log any ancaught Exceptions
Parameters

exctype
value
traceback

Returns
Used to override sys . excepthook so we can log any ancaught Exceptions Parameters exctype value traceback Returns
def excepthook_overide(exctype, value, traceback):
    logging.exception(''.join(format_exception(exctype, value, traceback)))
    logging.warn(('#'*30))
    if isinstance(exctype, type(LamaDataException)):
        logging.warn('Lama encountered a problem with reading or interpreting some data. Please check the log files')
    else:
        logging.warn('Lama encountered an unknown problem. Please check the log files')
    sys.exit()
def excepthook_overide ( exctype , value , traceback ) : logging . exception ( '' . join ( format_exception ( exctype , value , traceback ) ) ) logging . warn ( ( '#' * 30 ) ) if isinstance ( exctype , type ( LamaDataException ) ) : logging . warn ( 'Lama encountered a problem with reading or interpreting some data. Please check the log files' ) else : logging . warn ( 'Lama encountered an unknown problem. Please check the log files' ) sys . exit ( )
Used to override sys.excepthook so we can log any ancaught Exceptions
Parameters
Used to override sys . excepthook so we can log any ancaught Exceptions Parameters
"""
    Used to override sys.excepthook so we can log any ancaught Exceptions

    Parameters
    ----------
    exctype
    value
    traceback

    Returns
    -------

    """
exctype
value
traceback