human
I wrote the below code

    def cleanup():
        if isinstance(d.result, Failure):
            return d
    case.addCleanup(cleanup)
    return d

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def reportUnhandledErrors(case, d):