Skip to content

improve exception handling / diagnosis #218

@ThomasWaldmann

Description

@ThomasWaldmann

in attic.archiver:727:

try:
    exit_code = archiver.run(sys.argv[1:])
except Error as e:
    archiver.print_error(e.get_message())
    exit_code = e.exit_code

The problem here is that print_error only prints very little information. No traceback, thus no information where it crashed. For debugging, I just added a "raise" before this line, to re-raise the Error and get a normal traceback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions