def printTraceback(self, file=None, *args, **kwargs):
        if self.result is not NO_RESULT:
            # Failure is odd and writes to a file like object instead
            # of just returning a string like a sane person would...
            if file is None:
                file = logerr

            file.write("Result given to callback:\n")
            for line in str(self.result).splitlines():
                file.write("    %s\n" % line)

        return failure.Failure.printTraceback(self, file, *args, **kwargs)
dataset/ETHPy150Open marineam/nagcat/python/nagcat/errors.py/Failure.printTraceback/original