INNER CODE UNIT · Python

_excepthook

open2c/cooler · src/cooler/cli/__init__.py:99

    def _excepthook(exc_type, value, tb):
        traceback.print_exception(exc_type, value, tb)
        print()
        pdb.pm()

    sys.excepthook = _excepthook


@click.version_option(__version__, "-V", "--version")
@click.group(context_settings=CONTEXT_SETTINGS, cls=UnsortedGroup)
@click.option("-v", "--verbose", help="Verbose logging.", count=True)
@click.option(
    "-d",
    "--debug",
    help="On error, drop into the post-mortem debugger shell.",
    is_flag=True,
    default=False,
)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…