def store_failure(self, artifact_name, exc_info):
        """Stores a failure from an exception info tuple."""
        fn = self.get_filename(artifact_name)
        try:
            os.makedirs(os.path.dirname(fn))
        except __HOLE__:
            pass
        with open(fn, 'wb') as f:
            json.dump(BuildFailure.from_exc_info(
                artifact_name, exc_info).to_json(), f)
            f.write('\n')
dataset/ETHPy150Open lektor/lektor-archive/lektor/buildfailures.py/FailureController.store_failure