Skip to content

@catch_sigpipe decorator not working in rdump #186

@yunzheng

Description

@yunzheng

It seems that the @catch_sigpipe decorator stopped working since this change in rdump that catches any exceptions in the finally block during exit:

    finally:
        if record_writer:
            # Exceptions raised in threads can be thrown when deconstructing the writer.
            try:
                record_writer.__exit__()
            except Exception as e:
                print_error(e)
                ret = 1

This should be investigated if RecordWriter.__exit__() needs to raise any exceptions at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions