def METHOD_NAME(self):
    if self._mainfile_obj is None:
        try:
            self._mainfile_obj = self.open(self._mainfile)
        except Exception:
            pass
    return self._mainfile_obj